From 7b012a711bd6dc2051fb750d3514c83c11ff3093 Mon Sep 17 00:00:00 2001 From: n-029894 <122308390+n-029894@users.noreply.github.com> Date: Fri, 10 Nov 2023 15:15:47 +0400 Subject: [PATCH] Add support for arm platforms (#368) --- .github/workflows/docker-hub-master.yml | 11 +++++++++-- .github/workflows/docker-hub.yml | 11 +++++++++-- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docker-hub-master.yml b/.github/workflows/docker-hub-master.yml index 9ece3dd1..14ebda6a 100644 --- a/.github/workflows/docker-hub-master.yml +++ b/.github/workflows/docker-hub-master.yml @@ -14,11 +14,17 @@ jobs: uses: actions/checkout@v2 - name: Log in to Docker Hub - uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 + uses: docker/login-action@v3 with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Extract metadata (tags, labels) for Docker id: meta uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38 @@ -26,10 +32,11 @@ jobs: images: novyl/jtl-reporter-fe - name: Build and push Docker image - uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc + uses: docker/build-push-action@v5 with: context: . push: true + platforms: linux/amd64,linux/arm64 labels: novyl/jtl-reporter-fe:latest tags: novyl/jtl-reporter-fe:latest diff --git a/.github/workflows/docker-hub.yml b/.github/workflows/docker-hub.yml index 6404ceea..b890e7be 100644 --- a/.github/workflows/docker-hub.yml +++ b/.github/workflows/docker-hub.yml @@ -13,11 +13,17 @@ jobs: uses: actions/checkout@v2 - name: Log in to Docker Hub - uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 + uses: docker/login-action@v3 with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Extract metadata (tags, labels) for Docker id: meta uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38 @@ -25,9 +31,10 @@ jobs: images: novyl/jtl-reporter-fe - name: Build and push Docker image - uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc + uses: docker/build-push-action@v5 with: context: . push: true + platforms: linux/amd64,linux/arm64 tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }}