Skip to content

Commit

Permalink
ci: generate annotations on PR, not just push
Browse files Browse the repository at this point in the history
Co-authored-by: CrazyMax <[email protected]>
Signed-off-by: Craig Andrews <[email protected]>
  • Loading branch information
candrews and crazy-max authored Aug 7, 2024
1 parent 2749253 commit ad98d93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/dockerfile/cmd/dockerfile-frontend/hack/release
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ if [[ "$RELEASE" = "true" ]] && [[ "$GITHUB_ACTIONS" = "true" ]]; then
fi

outputFlag="type=image,$pushFlag"
if [ "$PUSH" = "push" ] && [ "$GITHUB_ACTIONS" = "true" ]; then
if [ "$GITHUB_ACTIONS" = "true" ]; then
outputFlag="${outputFlag},\"annotation.org.opencontainers.image.title=Dockerfile Frontend\""
if [ -n "$GITHUB_SHA" ]; then
outputFlag="${outputFlag},annotation.org.opencontainers.image.revision=$GITHUB_SHA"
Expand Down

0 comments on commit ad98d93

Please sign in to comment.