From ca43a2996a9adfb060f6b6b92463fc6a6ed535b5 Mon Sep 17 00:00:00 2001 From: Juansecu <43616657+Juansecu@users.noreply.github.com> Date: Mon, 14 Oct 2024 17:22:45 -0500 Subject: [PATCH] BUILD - Fix build of Docker image for different archs (#293) --- .github/workflows/push-docker-image.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/push-docker-image.yml b/.github/workflows/push-docker-image.yml index 1cf2133..46b5613 100644 --- a/.github/workflows/push-docker-image.yml +++ b/.github/workflows/push-docker-image.yml @@ -11,11 +11,6 @@ jobs: runs-on: ubuntu-latest permissions: contents: read - strategy: - matrix: - platforms: - - linux/amd64 - - linux/arm64 steps: - uses: actions/checkout@v4 - name: Retrieve major version @@ -31,11 +26,13 @@ jobs: username: ${{ secrets.DOCKERHUB_USERNAME }} - name: Set up QEMU uses: docker/setup-qemu-action@v3 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 - name: Build and push the Docker image - uses: docker/build-push-action@v5 + uses: docker/build-push-action@v6 with: context: . file: ./Dockerfile - platforms: ${{ matrix.platforms }} + platforms: linux/amd64,linux/arm64 push: true tags: ${{ secrets.DOCKERHUB_REPOSITORY }}:${{ github.ref_name }},${{ secrets.DOCKERHUB_REPOSITORY }}:${{ steps.split.outputs._0 }},${{ secrets.DOCKERHUB_REPOSITORY }}:latest