[Add] Support instruction ARG for build application by source code.

This commit is contained in:
Zhang Jiajun 2018-08-01 10:23:42 +08:00
parent 3a79ebeffe
commit d3e09b04f5

View File

@ -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
}