Skip to content

Commit 62c55b3

Browse files
authored
Merge pull request #84 from Space-DF/feat/build-multi-arch
feat: build multi-arch
2 parents ca44876 + 8235516 commit 62c55b3

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/cd-build-image.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,14 @@ jobs:
1919
uses: actions/checkout@v4
2020
with:
2121
ref: ${{ github.event.release.tag_name }}
22+
23+
# Enable multi-arch
24+
- name: Set up QEMU
25+
uses: docker/setup-qemu-action@v3
26+
27+
# Enable buildx
28+
- name: Set up Docker Buildx
29+
uses: docker/setup-buildx-action@v3
2230

2331
# Login to GHCR
2432
- name: Login to GHCR
@@ -46,6 +54,7 @@ jobs:
4654
context: .
4755
file: ./Dockerfile
4856
push: true
57+
platforms: linux/amd64,linux/arm64
4958
tags: ${{ steps.meta.outputs.tags }}
5059
labels: ${{ steps.meta.outputs.labels }}
5160
secrets: |

0 commit comments

Comments
 (0)