Skip to content

Commit

Permalink
update gh workflows for multi arch build (#612)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Eshanatnight authored Jan 10, 2024
1 parent 26b2ec0 commit 92fe4af
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .github/workflows/build-push-edge-debug.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

- name Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to Docker Hub
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
with:
Expand All @@ -36,3 +42,4 @@ jobs:
file: ./Dockerfile.debug
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/parseable:edge-debug
platforms: linux/amd64,linux/arm64
9 changes: 8 additions & 1 deletion .github/workflows/build-push-edge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

- name Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to Docker Hub
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
with:
Expand All @@ -28,11 +34,12 @@ jobs:
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
with:
images: parseable/parseable

- name: Build and push
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
with:
context: .
file: ./Dockerfile
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/parseable:edge
platforms: linux/amd64,linux/arm64

0 comments on commit 92fe4af

Please sign in to comment.