build-arg:SOURCE_DATE_EPOCH
This commit is contained in:
parent
760610f78d
commit
e3df02f69b
|
@ -119,6 +119,8 @@ 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()[:], ","))
|
||||
}
|
||||
|
|
|
@ -385,7 +385,6 @@ func (p *Plugin) Execute() error {
|
|||
cmds = append(cmds, commandBuildx())
|
||||
cmds = append(cmds, commandBuild(p.settings.Build, p.settings.Dryrun)) // docker build
|
||||
|
||||
fmt.Println("Build output: " + p.settings.Build.Output)
|
||||
fmt.Println(os.LookupEnv("SOURCE_DATE_EPOCH"))
|
||||
|
||||
// execute all commands in batch mode.
|
||||
|
|
Loading…
Reference in a new issue