Skip to content

Commit 9a56e3e

Browse files
authoredSep 10, 2021
Merge pull request #15 from jamf/build-other-archs
Add an arm64 build
2 parents f391d2c + 6821b70 commit 9a56e3e

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed
 

‎.github/workflows/docker-publish.yml

+9-2
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,15 @@ jobs:
2020
- name: Checkout repository
2121
uses: actions/checkout@v2
2222

23+
- name: Set up QEMU
24+
uses: docker/setup-qemu-action@v1
25+
26+
- name: Set up Docker Buildx
27+
uses: docker/setup-buildx-action@v1
28+
2329
- name: Log into registry ${{ env.REGISTRY }}
2430
if: github.event_name != 'pull_request'
25-
uses: docker/login-action@28218f9b04b4f3f62068d7b6ce6ca5b26e35336c
31+
uses: docker/login-action@v1
2632
with:
2733
registry: ${{ env.REGISTRY }}
2834
username: ${{ secrets.DOCKER_USER }}
@@ -41,9 +47,10 @@ jobs:
4147
# Build and push Docker image with Buildx (don't push on PR)
4248
# https://github.com/docker/build-push-action
4349
- name: Build and push Docker image
44-
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
50+
uses: docker/build-push-action@v2
4551
with:
4652
context: .
53+
platforms: linux/amd64,linux/arm64
4754
push: ${{ github.event_name != 'pull_request' }}
4855
tags: ${{ steps.meta.outputs.tags }}
4956
labels: ${{ steps.meta.outputs.labels }}

0 commit comments

Comments
 (0)