Skip to content

Commit

Permalink
GH action: build arm64 docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
ppcano committed Apr 15, 2024
1 parent 2e6b8e4 commit a193c69
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ jobs:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
- name: Set version
uses: actions/github-script@v6
id: set_version
Expand All @@ -27,11 +29,11 @@ jobs:
core.setOutput('tag', tag)
core.setOutput('tag-no-v', tag_no_v)
- name: Build Docker image and push to the Registry
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
push: true
platforms: linux/amd64,linux/arm64
tags: |
ghcr.io/grafana/quickpizza-local:${{ steps.set_version.outputs.tag-no-v }}, ghcr.io/grafana/quickpizza-local:latest
build-args: TARGETARCH=amd64

0 comments on commit a193c69

Please sign in to comment.