From faf7f78b8c10cd7b3688ed5bba3d0c077c020ad2 Mon Sep 17 00:00:00 2001 From: MAZE Date: Thu, 11 Apr 2024 15:13:49 +0330 Subject: [PATCH] chore: change GitHub workflow --- .github/workflows/build_docker.yml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build_docker.yml b/.github/workflows/build_docker.yml index cf7d1ac..eb197fb 100644 --- a/.github/workflows/build_docker.yml +++ b/.github/workflows/build_docker.yml @@ -20,15 +20,21 @@ jobs: username: ${{github.actor}} password: ${{secrets.ACCESS_TOKEN}} - - name: 'Build Inventory Image' + - name: Set up QEMU + uses: docker/setup-qemu-action@v1 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 + + - name: 'Build and push Inventory Image' run: | IMAGE_NAME="ghcr.io/remvze/moodist" GIT_TAG=${{ github.ref }} GIT_TAG=${GIT_TAG#refs/tags/} - docker build . --tag $IMAGE_NAME:latest - docker push $IMAGE_NAME:latest - - docker build . --tag $IMAGE_NAME:$GIT_TAG - docker push $IMAGE_NAME:$GIT_TAG + docker buildx build \ + --platform linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6 \ + -t $IMAGE_NAME:latest \ + -t $IMAGE_NAME:$GIT_TAG \ + --push .