docker upload task - check for alpha and RC (#4675)

* check for alpha and RC

Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
pull/4679/head
Sally MacFarlane 2 years ago committed by GitHub
parent c2531fb021
commit d95cea338f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      build.gradle

@ -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('.'))
}

Loading…
Cancel
Save