feat: set DOCKER_IMAGE_CREATED as build-arg

This commit is contained in:
Robert Kaussow 2021-01-22 12:00:14 +01:00
parent 90f4d344e8
commit 3bb91263e1
No known key found for this signature in database
GPG Key ID: 65362AE74AF98B61

View File

@ -5,6 +5,7 @@ import (
"os"
"os/exec"
"strings"
"time"
"github.com/urfave/cli/v2"
)
@ -106,6 +107,9 @@ func commandBuild(build Build) *exec.Cmd {
args = append(args, "--platform", strings.Join(build.Platforms.Value()[:], ","))
}
// append generated build args
args = append(args, "--build-arg", "DOCKER_IMAGE_CREATED=%s", time.Now().Format(time.RFC3339))
return exec.Command(dockerExe, args...)
}