Skip to content

Commit

Permalink
Add arm and arm64 build tp workflow
Browse files Browse the repository at this point in the history
tested successfully on Github Actions.
Build time 25-30 min for the 3 archs together.

Signed-off-by: mickkael <[email protected]>
  • Loading branch information
mickkael committed May 16, 2022
1 parent 23bc65b commit 285d4c6
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/build-push-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v2

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

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

- name: Log in to the Container registry
uses: docker/login-action@v1
Expand All @@ -42,9 +48,12 @@ jobs:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

- name: Build and push Docker image
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
env:
CI: false
with:
context: .
push: true
platforms: linux/amd64,linux/arm64,linux/arm/v7
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit 285d4c6

Please sign in to comment.