Skip to content

Commit

Permalink
build for arm64 as well
Browse files Browse the repository at this point in the history
  • Loading branch information
orzklv committed Sep 15, 2024
1 parent 150cdb0 commit 0d14046
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ env:
jobs:
build-and-push-image:
runs-on: ubuntu-latest

permissions:
contents: read
packages: write
Expand All @@ -20,8 +21,11 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Log in to the Container registry
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
uses: docker/login-action@3
with:
registry: ${{ env.REGISTRY }}
username: ${{ env.IMAGE_AUTHOR }}
Expand All @@ -34,9 +38,10 @@ jobs:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_AUTHOR }}/${{ env.IMAGE_NAME }}

- name: Build and push Docker image
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
uses: docker/build-push-action@6
with:
context: .
platforms: linux/amd64,linux/arm64,linux/arm/v8
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit 0d14046

Please sign in to comment.