From be01349421b917770d32bf332c43f510fa7bde8e Mon Sep 17 00:00:00 2001 From: Atharva Shirdhankar <72031540+StarTrooper08@users.noreply.github.com> Date: Thu, 15 Aug 2024 01:46:05 +0530 Subject: [PATCH] Update build-and-publish-image.yml --- .github/workflows/build-and-publish-image.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.github/workflows/build-and-publish-image.yml b/.github/workflows/build-and-publish-image.yml index 63eac8b9..a22086bd 100644 --- a/.github/workflows/build-and-publish-image.yml +++ b/.github/workflows/build-and-publish-image.yml @@ -37,6 +37,12 @@ jobs: run: | VER=$(cat VERSION) echo "VERSION=$VER" >> $GITHUB_ENV + + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 - name: Log in to the Container registry uses: docker/login-action@v3 @@ -65,3 +71,16 @@ jobs: build-args: | CONTAINER_VERSION=${{ env.VERSION }} labels: ${{ steps.meta.outputs.labels }} + platforms: linux/amd64 + + + - name: Build and push ARM based Docker image + uses: docker/build-push-action@v5 + with: + context: . + push: true + tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:arm.${{ github.ref_name }} + build-args: | + CONTAINER_VERSION=${{ env.VERSION }} + labels: ${{ steps.meta.outputs.labels }} + platforms: linux/arm64