normal build arg
This commit is contained in:
parent
e3df02f69b
commit
49ad1a64a6
|
@ -100,6 +100,7 @@ func commandBuild(build Build, dryrun bool) *exec.Cmd {
|
|||
for _, arg := range append(defaultBuildArgs, build.Args.Value()...) {
|
||||
args = append(args, "--build-arg", arg)
|
||||
}
|
||||
args = append(args, "--build-arg SOURCE_DATE_EPOCH="+strconv.FormatInt(build.Epoch, 10))
|
||||
for _, host := range build.AddHost.Value() {
|
||||
args = append(args, "--add-host", host)
|
||||
}
|
||||
|
@ -119,8 +120,6 @@ func commandBuild(build Build, dryrun bool) *exec.Cmd {
|
|||
args = append(args, "--quiet")
|
||||
}
|
||||
|
||||
args = append(args, "--opt", "build-arg:SOURCE_DATE_EPOCH="+strconv.FormatInt(build.Epoch, 10))
|
||||
|
||||
if len(build.Platforms.Value()) > 0 {
|
||||
args = append(args, "--platform", strings.Join(build.Platforms.Value()[:], ","))
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue