Skip to content

Commit

Permalink
add arm64 docker support
Browse files Browse the repository at this point in the history
  • Loading branch information
pastudan authored and mceachen committed Mar 26, 2022
1 parent 1f6d907 commit cb662b4
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ jobs:
- name: Checkout
uses: actions/[email protected]

- name: Set up QEMU
id: qemu
uses: docker/setup-qemu-action@v1
with:
platforms: arm64

- name: Set up Buildx
id: buildx
uses: docker/[email protected]
Expand Down Expand Up @@ -66,7 +72,7 @@ jobs:
with:
context: .
file: ./Dockerfile
platforms: linux/amd64
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
cache-from: type=local,src=/tmp/.buildx-cache
Expand All @@ -78,4 +84,4 @@ jobs:
name: Move cache
run: |
rm -rf /tmp/.buildx-cache
mv /tmp/.buildx-cache-new /tmp/.buildx-cache
mv /tmp/.buildx-cache-new /tmp/.buildx-cache

0 comments on commit cb662b4

Please sign in to comment.