Skip to content

Commit 04e5cee

Browse files
adamus1redadamus1red
andauthored
Add basic multi-arch build support (alexjustesen#67)
Co-authored-by: adamus1red <[email protected]>
1 parent e797c95 commit 04e5cee

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/publish-image.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ on:
1818
env:
1919
REGISTRY: ghcr.io
2020
IMAGE_NAME: ${{ github.repository }}
21+
PLATFORMS: linux/amd64,linux/arm64
2122

2223
jobs:
2324
build-and-push-image:
@@ -30,6 +31,12 @@ jobs:
3031
- name: Checkout repository
3132
uses: actions/checkout@v3
3233

34+
- name: Set up QEMU
35+
uses: docker/setup-qemu-action@v2
36+
37+
- name: Set up Docker Buildx
38+
uses: docker/setup-buildx-action@v2
39+
3340
- name: Log in to the Container registry
3441
uses: docker/login-action@v2
3542
with:
@@ -48,5 +55,6 @@ jobs:
4855
with:
4956
context: .
5057
push: true
58+
platforms: ${{ env.PLATFORMS }}
5159
tags: ${{ steps.meta.outputs.tags }}
5260
labels: ${{ steps.meta.outputs.labels }}

0 commit comments

Comments
 (0)