From 006c6be22f34e64e591b301d9eb3a1cf550dd1b9 Mon Sep 17 00:00:00 2001 From: Jakob Edding <15202881+JakobEdding@users.noreply.github.com> Date: Fri, 29 Nov 2024 17:04:38 +0100 Subject: [PATCH] Tag Jib images with branch name and PR # where appropriate --- actions/java-gradle-build-jib/action.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/actions/java-gradle-build-jib/action.yaml b/actions/java-gradle-build-jib/action.yaml index 11863a10c..c8682d7f1 100644 --- a/actions/java-gradle-build-jib/action.yaml +++ b/actions/java-gradle-build-jib/action.yaml @@ -89,6 +89,8 @@ runs: tags: | event=tag,type=semver,pattern={{version}} event=push,type=raw,value=pipeline-${{ github.run_id }}-git-{{sha}},enable=${{ github.ref_type != 'tag' }} + event=pr,type=ref + event=branch,type=ref,enable=${{ github.ref != 'refs/heads/master' && github.ref != 'refs/heads/main' }} flavor: | latest=false