Skip to content

Commit

Permalink
Add image prefix for PRs.
Browse files Browse the repository at this point in the history
Signed-off-by: Mangirdas Judeikis <[email protected]>
 On-behalf-of: @SAP [email protected]
  • Loading branch information
mjudeikis committed Dec 19, 2024
1 parent 7bf8cd5 commit c74ff02
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hack/build-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ if [ -n "${PULL_BASE_REF:-}" ]; then
fi
fi

# Prefix with "dev-" if not on a tag or branch
if [ -z "$branchName" ]; then
version="dev-$version"
# Prefix with "pr-" if not on a tag or branch
if [ -n "${PULL_NUMBER:-}" ]; then
version="pr-$PULL_NUMBER-$version"
fi

image="$repository:$version"
Expand Down

0 comments on commit c74ff02

Please sign in to comment.