From f5ed038aacce55868c7af64cb10fa2dbfdd46c78 Mon Sep 17 00:00:00 2001 From: Gino Canessa Date: Fri, 30 Aug 2024 10:58:13 -0500 Subject: [PATCH] Build multi-arch docker images. --- .github/workflows/argo-ris.yml | 2 ++ .github/workflows/ghcr-docker.yml | 13 +++++++++++-- .github/workflows/nuget-tool.yml | 2 ++ 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/.github/workflows/argo-ris.yml b/.github/workflows/argo-ris.yml index 9c97c67..4d05d0e 100644 --- a/.github/workflows/argo-ris.yml +++ b/.github/workflows/argo-ris.yml @@ -4,6 +4,8 @@ on: workflow_run: workflows: ['Publish on GitHub Container Registry'] types: [completed] + branches: + - main jobs: restart_deployment: diff --git a/.github/workflows/ghcr-docker.yml b/.github/workflows/ghcr-docker.yml index 9f76ddb..558006d 100644 --- a/.github/workflows/ghcr-docker.yml +++ b/.github/workflows/ghcr-docker.yml @@ -5,6 +5,8 @@ on: workflow_run: workflows: ['Tests'] types: [completed] + branches: + - main env: REGISTRY: ghcr.io @@ -22,11 +24,17 @@ jobs: id-token: write steps: + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Checkout repository uses: actions/checkout@v4 - name: Log in to the Container registry - uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1 + uses: docker/login-action@v3 with: registry: ${{ env.REGISTRY }} username: ${{ github.actor }} @@ -45,9 +53,10 @@ jobs: - name: Build and push Docker image id: push - uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4 + uses: docker/build-push-action@v6 with: context: . + platforms: linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v8 push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} diff --git a/.github/workflows/nuget-tool.yml b/.github/workflows/nuget-tool.yml index 49d5393..961cefa 100644 --- a/.github/workflows/nuget-tool.yml +++ b/.github/workflows/nuget-tool.yml @@ -5,6 +5,8 @@ on: workflow_run: workflows: ['Tests'] types: [completed] + branches: + - main jobs: build: