Files
yt-dlp-bot/.gitea/workflows/build-only.yaml
William Peebles 82b867ae9c
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 7m51s
Build and Push Docker Image / deploy-on-green (push) Successful in 1m18s
Merge pull request 'chore(deps): update docker/setup-buildx-action action to v4' (#46) from renovate/docker-setup-buildx-action-4.x into master
Reviewed-on: #46
2026-03-07 15:19:11 +00:00

35 lines
1.0 KiB
YAML

name: Build only (for PRs)
on:
pull_request:
jobs:
build-only:
runs-on: ubuntu-latest # Use a runner with Docker support
container: ghcr.io/catthehacker/ubuntu:act-latest # Image with Docker pre-installed
outputs:
sha_short: ${{ steps.vars.outputs.sha_short }}
steps:
# Checkout the repository code
- name: Checkout repository
uses: actions/checkout@v6
- name: Set outputs
id: vars
run: |
echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
# Set up Docker Buildx for building the image
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4
with:
driver: remote
endpoint: 'tcp://buildkitd:1234'
# Build the Docker image
- name: Build Docker Image
uses: docker/build-push-action@v7
with:
context: . # Build context (current directory)
file: ./Dockerfile # Path to Dockerfile
platforms: "linux/amd64,linux/arm64"