From 8875b98980b427015629713207ea16619c130a84 Mon Sep 17 00:00:00 2001 From: Axel Fahy Date: Sat, 20 Sep 2025 15:41:02 +0200 Subject: [PATCH] Add multi-platform build in workflow (#419) --- .github/workflows/cd.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index ab52566..f6d30ba 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -2,7 +2,7 @@ name: Create and publish a Docker image on: push: - tags: + tags: - '*' jobs: @@ -15,28 +15,29 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 - + - name: Login to Github Container Registry uses: docker/login-action@v3 with: registry: ghcr.io username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - + - name: Set up QEMU uses: docker/setup-qemu-action@v3 - + - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - name: Downcase repo run: | echo "REPO=${GITHUB_REPOSITORY@L}" >> "${GITHUB_ENV}" - + - name: Build and push uses: docker/build-push-action@v6 with: context: . + platforms: linux/amd64,linux/arm64 push: true tags: | ghcr.io/${{ env.REPO }}:${{ github.ref_name }}