From ef0c6ca3c82c229336b9a0ce834be19dba2bbc69 Mon Sep 17 00:00:00 2001 From: Felix Erdmann Date: Mon, 23 Dec 2024 13:18:53 +0100 Subject: [PATCH] ci: multi platform build --- .github/workflows/registry-build-publish.yaml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/registry-build-publish.yaml b/.github/workflows/registry-build-publish.yaml index fa269d1..2d180cc 100644 --- a/.github/workflows/registry-build-publish.yaml +++ b/.github/workflows/registry-build-publish.yaml @@ -22,10 +22,10 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Log in to the Container registry - uses: docker/login-action@dd4fa0671be5250ee6f50aedf4cb05514abda2c7 + uses: docker/login-action@v3 with: registry: ${{ env.REGISTRY }} username: ${{ github.actor }} @@ -33,7 +33,7 @@ jobs: - name: Extract metadata (tags, labels) for Docker id: meta - uses: docker/metadata-action@e5622373a38e60fb6d795a4421e56882f2d7a681 + uses: docker/metadata-action@v5 with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} flavor: | @@ -42,10 +42,11 @@ jobs: suffix= - name: Build and push Docker image - uses: docker/build-push-action@7f9d37fa544684fb73bfe4835ed7214c255ce02b + uses: docker/build-push-action@v6 with: context: . target: production push: true + platforms: linux/amd64,linux/arm64 tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }}