Skip to content

Commit

Permalink
From push based to release based
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel González Lopes <[email protected]>
  • Loading branch information
dgzlopes committed Sep 12, 2021
1 parent 4da6c65 commit 313489a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
name: "push"

on:
push:
branches: [ main ]
release:
types:
- published

jobs:
build:
Expand All @@ -29,4 +30,4 @@ jobs:
context: .
push: true
file: Dockerfile
tags: ghcr.io/grafana/github-traffic:latest,ghcr.io/grafana/github-traffic:${{ github.sha }}
tags: ghcr.io/grafana/github-traffic:latest,ghcr.io/grafana/github-traffic:${{ github.event.release.tag_name }}

0 comments on commit 313489a

Please sign in to comment.