Skip to content

Commit c4fc663

Browse files
committed
fix latest release
1 parent 84e9237 commit c4fc663

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/release.yaml

+4-3
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,16 @@ jobs:
2828

2929
- name: Build and push
3030
uses: docker/build-push-action@v6
31+
if: !startsWith(github.ref_name, 'v')
3132
with:
3233
push: true
3334
platforms: linux/amd64,linux/arm64
3435
tags: ghcr.io/port-labs/port-sender:${{ github.ref_name }}
3536

36-
- name: Push latest tag
37+
- name: Build and push with latest tag
3738
uses: docker/build-push-action@v6
38-
if: startsWith(github.ref, 'refs/tags/v')
39+
if: startsWith(github.ref_name, 'v')
3940
with:
4041
push: true
4142
platforms: linux/amd64,linux/arm64
42-
tags: ghcr.io/port-labs/port-sender:latest
43+
tags: ghcr.io/port-labs/port-sender:${{ github.ref_name }},ghcr.io/port-labs/port-sender:latest

0 commit comments

Comments
 (0)