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
This commit is contained in:
Debanjum 2024-12-10 23:16:36 -08:00
parent 5f7b13df2d
commit ec797bc6b8

View file

@ -85,7 +85,6 @@ jobs:
with: with:
context: . context: .
file: Dockerfile file: Dockerfile
platforms: ${{ matrix.platform }}
push: true push: true
tags: | tags: |
ghcr.io/${{ github.repository }}:${{ env.DOCKER_IMAGE_TAG }}-${{ matrix.platform == 'linux/amd64' && 'amd64' || 'arm64' }} ghcr.io/${{ github.repository }}:${{ env.DOCKER_IMAGE_TAG }}-${{ matrix.platform == 'linux/amd64' && 'amd64' || 'arm64' }}
@ -104,7 +103,6 @@ jobs:
with: with:
context: . context: .
file: prod.Dockerfile file: prod.Dockerfile
platforms: ${{ matrix.platform }}
push: true push: true
tags: | tags: |
ghcr.io/${{ github.repository }}-cloud:${{ env.DOCKER_IMAGE_TAG }}-${{ matrix.platform == 'linux/amd64' && 'amd64' || 'arm64' }} ghcr.io/${{ github.repository }}-cloud:${{ env.DOCKER_IMAGE_TAG }}-${{ matrix.platform == 'linux/amd64' && 'amd64' || 'arm64' }}
@ -128,6 +126,7 @@ jobs:
registry: ghcr.io registry: ghcr.io
username: ${{ github.repository_owner }} username: ${{ github.repository_owner }}
password: ${{ secrets.PAT }} password: ${{ secrets.PAT }}
- name: Create and Push Local Manifest - name: Create and Push Local Manifest
if: github.event.inputs.khoj == 'true' || github.event_name == 'push' if: github.event.inputs.khoj == 'true' || github.event_name == 'push'
run: | run: |