From d3e09b04f548505c1c3bc38f9987e2fa1bb0b58c Mon Sep 17 00:00:00 2001 From: Zhang Jiajun Date: Wed, 1 Aug 2018 10:23:42 +0800 Subject: [PATCH] [Add] Support instruction ARG for build application by source code. --- builder/exector/build_from_sourcecode_run.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builder/exector/build_from_sourcecode_run.go b/builder/exector/build_from_sourcecode_run.go index f9c48c1e7..09c5e14e3 100644 --- a/builder/exector/build_from_sourcecode_run.go +++ b/builder/exector/build_from_sourcecode_run.go @@ -285,7 +285,7 @@ func (i *SourceCodeBuildItem) buildImage() error { tag := i.DeployVersion buildImageName := strings.ToLower(fmt.Sprintf("%s/%s:%s", REGISTRYDOMAIN, name, tag)) args := make(map[string]string, 5) - for k, v := range args { + for k, v := range i.BuildEnvs { if strings.Contains(k, "BUILD_ARG_") { args[k] = v }