Skip to content

Commit 0d2b902

Browse files
committed
Add arm64 support to deploy workflow
1 parent da8c130 commit 0d2b902

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎.github/workflows/deploy.yaml‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ jobs:
3131
- name: Load image from archive
3232
run: docker load -i ${{ inputs.artifact }}.tar
3333

34+
- name: Set up QEMU
35+
uses: docker/setup-qemu-action@v4
36+
3437
- name: Set up Docker Buildx
3538
uses: docker/setup-buildx-action@v4
3639
with:
@@ -57,6 +60,7 @@ jobs:
5760
context: .
5861
file: ./Dockerfile
5962
push: true
63+
platforms: linux/amd64,linux/arm64
6064
cache-from: |
6165
ghcr.io/python-discord/snekbox-base:latest
6266
ghcr.io/python-discord/snekbox-venv:latest
@@ -73,6 +77,7 @@ jobs:
7377
context: .
7478
file: ./Dockerfile.pydis
7579
push: true
80+
platforms: linux/amd64,linux/arm64
7681
cache-from: |
7782
ghcr.io/python-discord/snekbox:latest-pydis
7883
build-args: SNEKBOX_IMAGE=localhost:5000/local/snekbox:${{ inputs.version }}
@@ -106,6 +111,7 @@ jobs:
106111
file: ./Dockerfile
107112
target: base
108113
push: true
114+
platforms: linux/amd64,linux/arm64
109115
cache-from: ghcr.io/python-discord/snekbox-base:latest
110116
cache-to: type=inline
111117
tags: |
@@ -120,6 +126,7 @@ jobs:
120126
file: ./Dockerfile
121127
target: venv
122128
push: true
129+
platforms: linux/amd64,linux/arm64
123130
cache-from: |
124131
ghcr.io/python-discord/snekbox-base:latest
125132
ghcr.io/python-discord/snekbox-venv:latest

0 commit comments

Comments
 (0)