From eed8a4dbec310069f3eaad68319d70f0b8e3dcd6 Mon Sep 17 00:00:00 2001 From: Bobbie Soedirgo Date: Tue, 20 Apr 2021 10:31:06 +0800 Subject: [PATCH] fix(release): up docker/build-push-action to v2 --- .github/workflows/release.yml | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8a52c2ec7..94829ea68 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -195,21 +195,28 @@ jobs: if: env.VERSION_BEFORE != env.VERSION_AFTER - name: Set up QEMU - uses: docker/setup-qemu-action@master + if: env.VERSION_BEFORE != env.VERSION_AFTER + uses: docker/setup-qemu-action@v1 with: platforms: arm64,amd64 - name: Set up Docker Buildx + if: env.VERSION_BEFORE != env.VERSION_AFTER id: buildx - uses: docker/setup-buildx-action@master + uses: docker/setup-buildx-action@v1 - - name: Upload build to Docker Hub + - name: Login to DockerHub if: env.VERSION_BEFORE != env.VERSION_AFTER - uses: docker/build-push-action@v1 + uses: docker/login-action@v1 with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} - repository: supabase/realtime - tags: latest,v${{ env.VERSION_AFTER }} + + - name: Upload build to Docker Hub + if: env.VERSION_BEFORE != env.VERSION_AFTER + uses: docker/build-push-action@v2 + with: + push: true + tags: supabase/realtime:latest,supabase/realtime:v${{ env.VERSION_AFTER }} builder: ${{ steps.buildx.outputs.name }} platforms: linux/amd64,linux/arm64