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 }