Skip to content

Commit

Permalink
feat: enable building arm64 docker images (#658)
Browse files Browse the repository at this point in the history
* feat: enable building arm64 docker images

* attempt at fixing

* support multiple platform exports
  • Loading branch information
NiceAesth authored Apr 21, 2024
1 parent 10645da commit 1b064c7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/docker-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ jobs:

- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: linux/amd64, linux/arm64

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
Expand All @@ -27,7 +29,8 @@ jobs:
uses: docker/build-push-action@v5
with:
context: .
outputs: type=docker,dest=/tmp/docker.tar
platforms: linux/amd64, linux/arm64
outputs: type=oci,dest=/tmp/docker.tar
tags: bancho.py:${{ github.sha }}
cache-from: type=gha
cache-to: type=gha,mode=max
Expand All @@ -50,7 +53,7 @@ jobs:
if: ${{ github.ref == 'refs/heads/master' }}
with:
context: .
platforms: linux/amd64
platforms: linux/amd64, linux/arm64
push: true
tags: |
${{ secrets.DOCKERHUB_USERNAME }}/bancho.py:latest
Expand Down

0 comments on commit 1b064c7

Please sign in to comment.