Skip to content

Commit

Permalink
fix(release): up docker/build-push-action to v2
Browse files Browse the repository at this point in the history
  • Loading branch information
soedirgo committed Apr 20, 2021
1 parent 94823e2 commit eed8a4d
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit eed8a4d

Please sign in to comment.