Skip to content

Commit

Permalink
docker upload task - check for alpha and RC (hyperledger#4675)
Browse files Browse the repository at this point in the history
* check for alpha and RC

Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
  • Loading branch information
macfarla authored Nov 15, 2022
1 parent c2531fb commit d95cea3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,10 @@ task dockerUpload {
additionalTags.add('develop')
}

if (!(dockerBuildVersion ==~ /.*-SNAPSHOT/)) {
def isInterimBuild = (dockerBuildVersion ==~ /.*-SNAPSHOT/) || (dockerBuildVersion ==~ /.*-alpha/)
|| (dockerBuildVersion ==~ /.*-beta/) || (dockerBuildVersion ==~ /.*-RC/)

if (!isInterimBuild) {
additionalTags.add('latest')
additionalTags.add(dockerBuildVersion.split(/\./)[0..1].join('.'))
}
Expand Down

0 comments on commit d95cea3

Please sign in to comment.