From 5299426f788f5dd9d291368357f26a6e1d4328a5 Mon Sep 17 00:00:00 2001 From: Emanuele Fumagalli Date: Sun, 6 Aug 2023 13:11:59 +0100 Subject: [PATCH] working on tag depending on event --- .github/workflows/ghcr-build-push.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/ghcr-build-push.yml b/.github/workflows/ghcr-build-push.yml index 345e424..01d2702 100644 --- a/.github/workflows/ghcr-build-push.yml +++ b/.github/workflows/ghcr-build-push.yml @@ -2,6 +2,9 @@ name: Publish Docker image to GHCR on: workflow_dispatch: + push: + branches: + - main release: types: [published] @@ -18,6 +21,12 @@ jobs: packages: write id-token: write steps: + - name: Dump GitHub context + env: + GITHUB_CONTEXT: ${{ toJson(github) }} + run: | + echo "$GITHUB_CONTEXT" + - name: Check out the repo uses: actions/checkout@v3