From 7c503d784b2f5fea0f7510b6afd0ba3075d98202 Mon Sep 17 00:00:00 2001 From: Hans Schulz Date: Thu, 30 Apr 2020 17:32:18 +0200 Subject: [PATCH] fix dockerVersionSource not being used (#1492) --- cmd/artifactPrepareVersion.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmd/artifactPrepareVersion.go b/cmd/artifactPrepareVersion.go index a7b1c26704..3132b30f82 100644 --- a/cmd/artifactPrepareVersion.go +++ b/cmd/artifactPrepareVersion.go @@ -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)