From 313489a42406ec9fc2dde6983d4b196a9c57bcb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Gonz=C3=A1lez=20Lopes?= Date: Sun, 12 Sep 2021 13:05:20 +0200 Subject: [PATCH] From push based to release based MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Daniel González Lopes --- .github/workflows/push.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/push.yaml b/.github/workflows/push.yaml index 4336ce0..0bd9ea3 100644 --- a/.github/workflows/push.yaml +++ b/.github/workflows/push.yaml @@ -2,8 +2,9 @@ name: "push" on: - push: - branches: [ main ] + release: + types: + - published jobs: build: @@ -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 }}