Skip to content

Commit

Permalink
chore: do not push some tags
Browse files Browse the repository at this point in the history
if we are not building the latest maven version

not 3-amazoncorretto-8-debian-bookworm for example
  • Loading branch information
carlossg committed Dec 18, 2023
1 parent 4757d0e commit cf3e3b2
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,16 +80,14 @@ version-aliases() {
mavenVersion="${mavenVersion%[.-]*}"
done

# tag full version
# do not tag 3, latest, 3-amazoncorretto, amazoncorretto,... if we are not building the latest version
if [ "$dockerfileMavenVersion" = "$latestMavenVersion" ]; then
# tag full version
versionAliases+=("$mavenVersion-$version") # 3-amazoncorretto-11
fi
for extraSuffix in "${extraSuffixes[@]}"; do
versionAliases+=("${mavenVersion}-${version}-${extraSuffix}")
done
for extraSuffix in "${extraSuffixes[@]}"; do
versionAliases+=("${mavenVersion}-${version}-${extraSuffix}")
done

# do not tag 3, latest, 3-amazoncorretto, amazoncorretto,... if we are not building the latest version
if [ "$dockerfileMavenVersion" = "$latestMavenVersion" ]; then
# tag 3, latest
if [[ "$version" == "$default_jdk-$latest" ]]; then
versionAliases+=("$mavenVersion" latest)
Expand Down

0 comments on commit cf3e3b2

Please sign in to comment.