From 285d4c600ecebf034fa50280002eedffda2d6816 Mon Sep 17 00:00:00 2001 From: mickkael <19755421+mickkael@users.noreply.github.com> Date: Mon, 16 May 2022 15:34:33 +0800 Subject: [PATCH] Add arm and arm64 build tp workflow tested successfully on Github Actions. Build time 25-30 min for the 3 archs together. Signed-off-by: mickkael <19755421+mickkael@users.noreply.github.com> --- .github/workflows/build-push-docker.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-push-docker.yml b/.github/workflows/build-push-docker.yml index f7848062..f59a4d67 100644 --- a/.github/workflows/build-push-docker.yml +++ b/.github/workflows/build-push-docker.yml @@ -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 @@ -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 }}