Skip to content

Commit

Permalink
fix: multi arch support (#4)
Browse files Browse the repository at this point in the history
* fix: docker action upgrade to v3
* fix: docker build with platform param
  • Loading branch information
mabunixda authored Nov 22, 2022
1 parent bf1e611 commit a536b98
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ jobs:
password: ${{ secrets.QUAY_TOKEN }}

- name: Login to GitHub Container Registry
if: needs.prebuild.outputs.version != ''
uses: docker/login-action@v1
with:
registry: ghcr.io
Expand All @@ -111,13 +112,14 @@ jobs:

- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with:
builder: ${{ steps.buildx.outputs.name }}
context: .
file: ./Dockerfile
push: ${{ github.event_name != 'pull_request' && needs.prebuild.outputs.version != '' }}
tags: ${{ steps.prep.outputs.tags }}
platforms: 'arm64,arm,amd64'

release:
needs: [ prebuild, build ]
Expand Down

0 comments on commit a536b98

Please sign in to comment.