Skip to content

Commit

Permalink
Fix ARCH build-args
Browse files Browse the repository at this point in the history
Signed-off-by: galal-hussein <[email protected]>
  • Loading branch information
galal-hussein committed Jun 5, 2024
1 parent 28054fe commit 1955b94
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions .github/workflows/image-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ env:

jobs:
push-multiarch:
strategy:
matrix:
platform:
- linux/amd64
- linux/arm64
permissions:
contents: read
id-token: write
Expand Down Expand Up @@ -39,16 +44,29 @@ jobs:
username: ${{ env.DOCKER_USERNAME }}
password: ${{ env.DOCKER_PASSWORD }}

- name: Build container image for Linux
- name: Build container image for arm64
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: rancher/hardened-containerd:${{ github.event.release.tag_name }}
file: Dockerfile
platforms: linux/amd64, linux/arm64
platforms: linux/arm64
build-args: |
TAG=${{ env.TAG }}
ARCH=arm64
- name: Build container image for amd64
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: rancher/hardened-containerd:${{ github.event.release.tag_name }}
file: Dockerfile
platforms: linux/amd64
build-args: |
TAG=${{ env.TAG }}
ARCH=amd64
- name: Build container image for Windows
uses: docker/build-push-action@v5
Expand Down

0 comments on commit 1955b94

Please sign in to comment.