Skip to content

Commit 313489a

Browse files
committed
From push based to release based
Signed-off-by: Daniel González Lopes <[email protected]>
1 parent 4da6c65 commit 313489a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/push.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
name: "push"
33

44
on:
5-
push:
6-
branches: [ main ]
5+
release:
6+
types:
7+
- published
78

89
jobs:
910
build:
@@ -29,4 +30,4 @@ jobs:
2930
context: .
3031
push: true
3132
file: Dockerfile
32-
tags: ghcr.io/grafana/github-traffic:latest,ghcr.io/grafana/github-traffic:${{ github.sha }}
33+
tags: ghcr.io/grafana/github-traffic:latest,ghcr.io/grafana/github-traffic:${{ github.event.release.tag_name }}

0 commit comments

Comments
 (0)