Skip to content

Commit 6234e4b

Browse files
authored
Added arm64 build support (#11)
1 parent caa5c0a commit 6234e4b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/docker-image.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ jobs:
3333
registry: ${{ env.REGISTRY }}
3434
username: ${{ github.actor }}
3535
password: ${{ secrets.GITHUB_TOKEN }}
36+
- name: Set up QEMU
37+
uses: docker/setup-qemu-action@v3
38+
- name: Set up Docker Buildx
39+
uses: docker/setup-buildx-action@v3
3640
- name: Set Release Date
3741
run: |
3842
echo "BUILT_AT=$(date --rfc-3339=date)" >> ${GITHUB_ENV}
@@ -44,9 +48,10 @@ jobs:
4448
with:
4549
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
4650
- name: Build and push Docker image
47-
uses: docker/build-push-action@v3
51+
uses: docker/build-push-action@v5
4852
with:
4953
context: .
54+
platforms: linux/amd64,linux/arm64
5055
push: ${{ github.event_name != 'pull_request' }}
5156
tags: ${{ steps.meta.outputs.tags }}
5257
labels: ${{ steps.meta.outputs.labels }}

0 commit comments

Comments
 (0)