Skip to content

Commit 92fe4af

Browse files
authored
update gh workflows for multi arch build (#612)
Add support to build images for linux/arm64, linux/amd64 From the Docker documentation: QEMU and Docker Buildx needed to be setup in the workflow to build multi-arch images. The documentation suggests using the docker/build-push-action@v5 action to build multi-arch images. Fixes #163
1 parent 26b2ec0 commit 92fe4af

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

.github/workflows/build-push-edge-debug.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ jobs:
1717
- name: Checkout
1818
uses: actions/checkout@v3
1919

20+
- name Set up QEMU
21+
uses: docker/setup-qemu-action@v3
22+
23+
- name: Set up Docker Buildx
24+
uses: docker/setup-buildx-action@v3
25+
2026
- name: Login to Docker Hub
2127
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
2228
with:
@@ -36,3 +42,4 @@ jobs:
3642
file: ./Dockerfile.debug
3743
push: true
3844
tags: ${{ secrets.DOCKERHUB_USERNAME }}/parseable:edge-debug
45+
platforms: linux/amd64,linux/arm64

.github/workflows/build-push-edge.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ jobs:
1717
- name: Checkout
1818
uses: actions/checkout@v3
1919

20+
- name Set up QEMU
21+
uses: docker/setup-qemu-action@v3
22+
23+
- name: Set up Docker Buildx
24+
uses: docker/setup-buildx-action@v3
25+
2026
- name: Login to Docker Hub
2127
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
2228
with:
@@ -28,11 +34,12 @@ jobs:
2834
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
2935
with:
3036
images: parseable/parseable
31-
37+
3238
- name: Build and push
3339
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
3440
with:
3541
context: .
3642
file: ./Dockerfile
3743
push: true
3844
tags: ${{ secrets.DOCKERHUB_USERNAME }}/parseable:edge
45+
platforms: linux/amd64,linux/arm64

0 commit comments

Comments
 (0)