Skip to content

Commit a536b98

Browse files
authored
fix: multi arch support (#4)
* fix: docker action upgrade to v3 * fix: docker build with platform param
1 parent bf1e611 commit a536b98

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/docker.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ jobs:
103103
password: ${{ secrets.QUAY_TOKEN }}
104104

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

112113
- name: Build and push
113114
id: docker_build
114-
uses: docker/build-push-action@v2
115+
uses: docker/build-push-action@v3
115116
with:
116117
builder: ${{ steps.buildx.outputs.name }}
117118
context: .
118119
file: ./Dockerfile
119120
push: ${{ github.event_name != 'pull_request' && needs.prebuild.outputs.version != '' }}
120121
tags: ${{ steps.prep.outputs.tags }}
122+
platforms: 'arm64,arm,amd64'
121123

122124
release:
123125
needs: [ prebuild, build ]

0 commit comments

Comments
 (0)