Skip to content

Commit eed8a4d

Browse files
committed
fix(release): up docker/build-push-action to v2
1 parent 94823e2 commit eed8a4d

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

.github/workflows/release.yml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -195,21 +195,28 @@ jobs:
195195
if: env.VERSION_BEFORE != env.VERSION_AFTER
196196

197197
- name: Set up QEMU
198-
uses: docker/setup-qemu-action@master
198+
if: env.VERSION_BEFORE != env.VERSION_AFTER
199+
uses: docker/setup-qemu-action@v1
199200
with:
200201
platforms: arm64,amd64
201202

202203
- name: Set up Docker Buildx
204+
if: env.VERSION_BEFORE != env.VERSION_AFTER
203205
id: buildx
204-
uses: docker/setup-buildx-action@master
206+
uses: docker/setup-buildx-action@v1
205207

206-
- name: Upload build to Docker Hub
208+
- name: Login to DockerHub
207209
if: env.VERSION_BEFORE != env.VERSION_AFTER
208-
uses: docker/build-push-action@v1
210+
uses: docker/login-action@v1
209211
with:
210212
username: ${{ secrets.DOCKER_USERNAME }}
211213
password: ${{ secrets.DOCKER_PASSWORD }}
212-
repository: supabase/realtime
213-
tags: latest,v${{ env.VERSION_AFTER }}
214+
215+
- name: Upload build to Docker Hub
216+
if: env.VERSION_BEFORE != env.VERSION_AFTER
217+
uses: docker/build-push-action@v2
218+
with:
219+
push: true
220+
tags: supabase/realtime:latest,supabase/realtime:v${{ env.VERSION_AFTER }}
214221
builder: ${{ steps.buildx.outputs.name }}
215222
platforms: linux/amd64,linux/arm64

0 commit comments

Comments
 (0)