mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-12-03 04:07:51 +08:00
[Add] Support instruction ARG for build application by source code.
This commit is contained in:
parent
3a79ebeffe
commit
d3e09b04f5
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user