Bump docker/setup-buildx-action from 2 to 3 #8
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test PR | |
# FIXME: Can we not build either job if stuff has been unchanged since last commit for that job? | |
# FIXME: Use branch name for tagging docker build | |
on: | |
pull_request: | |
branches: | |
- main | |
paths: | |
- rootfs/** | |
- .github/workflows/test-pr.yml | |
env: | |
REGISTRY: ghcr.io | |
IMAGE_NAME: ${{ github.repository }} | |
jobs: | |
deploy_ghcr_latest: | |
name: Deploy Test to ghcr.io | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
# Check out our code | |
- name: Checkout | |
uses: actions/checkout@v4 | |
# Set up QEMU for multi-arch builds | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
# Log into ghcr (so we can push images) | |
- name: Login to ghcr.io | |
uses: docker/login-action@v2 | |
with: | |
registry: ${{ env.REGISTRY }} | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
# Get metadata from repo | |
- name: Extract metadata (tags, labels) for Docker | |
id: meta | |
uses: docker/metadata-action@v4 | |
with: | |
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} | |
# Set up buildx for multi platform builds | |
- name: Set up Docker Buildx | |
id: buildx | |
uses: docker/setup-buildx-action@v3 | |
# Build & Push Dockerfile (test) | |
- name: Build & Push ghcr.io/sdr-enthusiasts/docker-acarsdec:test | |
uses: docker/build-push-action@v4 | |
with: | |
context: . | |
file: ./Dockerfile | |
no-cache: true | |
platforms: linux/386,linux/amd64,linux/arm/v7,linux/arm/v6,linux/arm64 | |
push: true | |
tags: ghcr.io/sdr-enthusiasts/docker-acarsdec:test | |
labels: ${{ steps.meta.outputs.labels }} |