Skip to content

Commit 065e043

Browse files
authored
Merge pull request #9 from CodeForAfrica/build-docker-images-for-both-arm-and-amd
Build multi-platform Docker images
2 parents eaaa247 + 91a34a7 commit 065e043

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/publish-docker-image.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,14 @@ jobs:
1717
- name: Check out the repo
1818
uses: actions/checkout@0c366fd6a839edf440554fa01a7085ccba70ac98
1919

20+
- name: Set up QEMU
21+
uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130
22+
with:
23+
platforms: arm64
24+
25+
- name: Set up Docker Buildx
26+
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f
27+
2028
- name: Log in to Docker Hub
2129
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef
2230
with:
@@ -29,10 +37,11 @@ jobs:
2937
with:
3038
images: codeforafrica/pesacheck-ghost
3139

32-
- name: Build and push Docker image
40+
- name: Build and push multi-platform images
3341
id: push
3442
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83
3543
with:
44+
platforms: linux/amd64,linux/arm64
3645
context: .
3746
file: ./Dockerfile
3847
push: true

0 commit comments

Comments
 (0)