From 724fbe82d6a6f7d7e5686c4986e33c5bbd7c38b2 Mon Sep 17 00:00:00 2001 From: Tarrence van As Date: Fri, 1 Dec 2023 18:34:42 +0200 Subject: [PATCH] Fix amd64 docker target --- .github/workflows/release.yml | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fa58af603f..4a14f85788 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -232,8 +232,8 @@ jobs: const prunePrereleases = require('./.github/scripts/prune-prereleases.js') await prunePrereleases({github, context}) - docker-build-and-push-linux-arm64: - name: Build and push linux-arm64 docker image + docker-build-and-push-linux-amd64: + name: Build and push linux-amd64 docker image runs-on: ubuntu-latest-4-cores needs: [prepare, release] @@ -260,15 +260,16 @@ jobs: - name: Build and push docker image uses: docker/build-push-action@v4 with: - push: true - tags: ghcr.io/${{ github.repository }}:latest,ghcr.io/${{ github.repository }}:${{ needs.prepare.outputs.tag_name }} - platforms: linux/arm64 - target: arm64 build-contexts: | artifacts=artifacts + push: true + provenance: false + tags: ghcr.io/${{ github.repository }}:latest,ghcr.io/${{ github.repository }}:${{ needs.prepare.outputs.tag_name }} + platforms: linux/amd64 + target: amd64 - docker-build-and-push-linux-amd64: - name: Build and push linux-amd64 docker image + docker-build-and-push-linux-arm64: + name: Build and push linux-arm64 docker image runs-on: ubuntu-latest-4-cores needs: [prepare, release] @@ -295,9 +296,11 @@ jobs: - name: Build and push docker image uses: docker/build-push-action@v4 with: - build-contexts: | - artifacts=artifacts push: true + provenance: false tags: ghcr.io/${{ github.repository }}:latest,ghcr.io/${{ github.repository }}:${{ needs.prepare.outputs.tag_name }} - platforms: linux/amd64 - target: amd64 + platforms: linux/arm64 + target: arm64 + build-contexts: | + artifacts=artifacts +