mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-12-04 04:38:04 +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
|
tag := i.DeployVersion
|
||||||
buildImageName := strings.ToLower(fmt.Sprintf("%s/%s:%s", REGISTRYDOMAIN, name, tag))
|
buildImageName := strings.ToLower(fmt.Sprintf("%s/%s:%s", REGISTRYDOMAIN, name, tag))
|
||||||
args := make(map[string]string, 5)
|
args := make(map[string]string, 5)
|
||||||
for k, v := range args {
|
for k, v := range i.BuildEnvs {
|
||||||
if strings.Contains(k, "BUILD_ARG_") {
|
if strings.Contains(k, "BUILD_ARG_") {
|
||||||
args[k] = v
|
args[k] = v
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user