Skip to content

Commit

Permalink
fix: build ARM images (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
zarianec authored May 17, 2022
1 parent 2f818c1 commit 9cfbaa4
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/_docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,14 @@ jobs:
with:
ref: ${{ inputs.ref }}

- name: Log into registry
uses: docker/login-action@v1
- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Log to Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
Expand All @@ -42,9 +48,10 @@ jobs:
tags: type=semver,pattern={{version}},value=${{ inputs.ref }}

- name: Build and push
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with:
context: .
platforms: linux/amd64,linux/arm,linux/arm64,
push: ${{ inputs.publish }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
Expand Down

0 comments on commit 9cfbaa4

Please sign in to comment.