From 23fc62875e1a5616d1b162734be71ae0eb46dcaf Mon Sep 17 00:00:00 2001 From: Amir Pourmand Date: Wed, 19 Jul 2023 09:13:46 +0330 Subject: [PATCH] Update Tag Deploys to Support M1 Macbooks (#1522) I should merge this whenever normal deploy is well-tested for Mac computers. --- .github/workflows/deploy-docker-tag.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy-docker-tag.yml b/.github/workflows/deploy-docker-tag.yml index e101aa4b4e47..db9f8fcc0bf0 100644 --- a/.github/workflows/deploy-docker-tag.yml +++ b/.github/workflows/deploy-docker-tag.yml @@ -14,9 +14,13 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 + + - name: Set up QEMU + uses: docker/setup-qemu-action@v2 + - name: Buildx - uses: docker/setup-buildx-action@v1 - + uses: docker/setup-buildx-action@v2 + - name: Docker meta id: meta @@ -25,7 +29,7 @@ jobs: images: amirpourmand/al-folio - name: Login - uses: docker/login-action@v1 + uses: docker/login-action@v2 with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} @@ -34,6 +38,7 @@ jobs: uses: docker/build-push-action@v3 with: context: . + platforms: linux/amd64,linux/arm64/v8 push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }}