Skip to content

Commit

Permalink
Merge pull request #8592 from smarterclayton/fix_versioning
Browse files Browse the repository at this point in the history
All image references should be using full semantic version
  • Loading branch information
smarterclayton committed Apr 21, 2016
2 parents 83248f3 + 396b910 commit 061e6d4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/cmd/util/variable/variable.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,10 @@ func Versions(key string) (string, bool) {
return s, true
case "version":
s := OverrideVersion.GitVersion
seg := strings.SplitN(s, "-", 2)
return seg[0], true
if strings.HasSuffix(s, "-dirty") {
s = strings.TrimSuffix(s, "-dirty")
}
return s, true
default:
return "", false
}
Expand Down

0 comments on commit 061e6d4

Please sign in to comment.