From b895a4cc1e7fb0ef675f9fabc137cca28af7cfec Mon Sep 17 00:00:00 2001 From: Kavindu Dodanduwa Date: Fri, 1 Dec 2023 10:19:23 -0800 Subject: [PATCH] chore: support arm image (#261) ## This PR Attempting to add arm64 image support --------- Signed-off-by: Kavindu Dodanduwa --- .github/workflows/release-please.yml | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index efa4a1f6..dcf844c7 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -46,26 +46,23 @@ jobs: with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} - #- name: Set up QEMU - # uses: docker/setup-qemu-action@master - # with: - # platforms: all - - # - name: Set up Docker Buildx - # id: buildx - # uses: docker/setup-buildx-action@master - - name: Get current date id: date run: echo "::set-output name=date::$(date +'%Y-%m-%d')" + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + with: + platforms: linux/amd64,linux/arm64 + - name: Build App Container uses: docker/build-push-action@v4 with: - # builder: ${{ steps.buildx.outputs.name }} context: . file: ./packages/app/Dockerfile - # platforms: linux/amd64,linux/arm64 push: true tags: | ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}-app:latest @@ -79,10 +76,8 @@ jobs: - name: Build Fibonacci Service Container uses: docker/build-push-action@v4 with: - # builder: ${{ steps.buildx.outputs.name }} context: . file: ./packages/fibonacci-service/Dockerfile - # platforms: linux/amd64,linux/arm64 push: true tags: | ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}-fib-service:latest