From ec797bc6b8c6a37faefccdd1b7e7c809782d4515 Mon Sep 17 00:00:00 2001 From: Debanjum Date: Tue, 10 Dec 2024 23:16:36 -0800 Subject: [PATCH] Build docker imgs on native arch runners to avoid manifest list error This also avoids the need to use --amend and annotate steps when creating the multi-arch docker images --- .github/workflows/dockerize.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/dockerize.yml b/.github/workflows/dockerize.yml index 1250056c..79c3f483 100644 --- a/.github/workflows/dockerize.yml +++ b/.github/workflows/dockerize.yml @@ -85,7 +85,6 @@ jobs: with: context: . file: Dockerfile - platforms: ${{ matrix.platform }} push: true tags: | ghcr.io/${{ github.repository }}:${{ env.DOCKER_IMAGE_TAG }}-${{ matrix.platform == 'linux/amd64' && 'amd64' || 'arm64' }} @@ -104,7 +103,6 @@ jobs: with: context: . file: prod.Dockerfile - platforms: ${{ matrix.platform }} push: true tags: | ghcr.io/${{ github.repository }}-cloud:${{ env.DOCKER_IMAGE_TAG }}-${{ matrix.platform == 'linux/amd64' && 'amd64' || 'arm64' }} @@ -128,6 +126,7 @@ jobs: registry: ghcr.io username: ${{ github.repository_owner }} password: ${{ secrets.PAT }} + - name: Create and Push Local Manifest if: github.event.inputs.khoj == 'true' || github.event_name == 'push' run: |