Skip to content

Commit

Permalink
Fix amd64 docker target
Browse files Browse the repository at this point in the history
  • Loading branch information
tarrencev committed Dec 1, 2023
1 parent b06be64 commit 724fbe8
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand All @@ -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]

Expand All @@ -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

0 comments on commit 724fbe8

Please sign in to comment.