Skip to content

Commit

Permalink
Update vars/buildDockerImage.groovy
Browse files Browse the repository at this point in the history
Co-authored-by: Tim Jacomb <t.jacomb@kainos.com>
  • Loading branch information
halkeye and timja authored May 26, 2020
1 parent 87a3473 commit b2e941d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vars/buildDockerImage.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def call(String imageName, Map config=[:]) {
stage("Deploy tag as tag") {
// semver regex from https://gist.github.com/jhorsman/62eeea161a13b80e39f5249281e17c39
// when { tag pattern: "v([0-9]+)\\.([0-9]+)\\.([0-9]+)(?:-([0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*))?(?:\\+[0-9A-Za-z-]+)?\$ ", comparator: "REGEXP"}
// for now since testing only handles simple string, start witht that
// for now since testing only handles simple string, start with that
when { tag "v*" }
steps {
sh "docker tag ${config.registry}${imageName} ${config.registry}${imageName}:${TAG_NAME}"
Expand Down

0 comments on commit b2e941d

Please sign in to comment.