Skip to content

Commit

Permalink
fix dockerVersionSource not being used (#1492)
Browse files Browse the repository at this point in the history
  • Loading branch information
schulzh authored Apr 30, 2020
1 parent 30850ae commit 7c503d7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/artifactPrepareVersion.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ func runArtifactPrepareVersion(config *artifactPrepareVersionOptions, telemetryD
VersioningScheme: config.CustomVersioningScheme,
}

if config.BuildTool == "docker" {
artifactOpts.VersionSource = config.DockerVersionSource
}

var err error
if artifact == nil {
artifact, err = versioning.GetArtifact(config.BuildTool, config.FilePath, &artifactOpts, runner)
Expand Down

0 comments on commit 7c503d7

Please sign in to comment.