Skip to content

Commit 72314b0

Browse files
committed
Update tag.yml
1 parent 659398d commit 72314b0

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/tag.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Tag
22

33
on:
44
release:
5-
types: [released]
5+
types: [released, prereleased]
66

77
jobs:
88
docker-image:
@@ -38,7 +38,9 @@ jobs:
3838
uses: docker/build-push-action@v6
3939
with:
4040
context: .
41-
push: true
42-
tags: ghcr.io/matiasg19/ping:latest
41+
push: ${{ github.event_name == 'release' }}
42+
tags: |
43+
ghcr.io/matiasg19/ping:latest
44+
ghcr.io/matiasg19/ping:${{ github.ref_name }}
4345
labels: ${{ steps.meta.outputs.labels }}
4446
platforms: linux/amd64,linux/arm64

0 commit comments

Comments
 (0)