0
0
mirror of https://github.com/thegeeklab/wp-docker-buildx.git synced 2024-11-13 22:50:41 +00:00

Revert "feat: add env variable DRONE_DOCKER_BUILD_TIME to docker cmd"

This reverts commit 0e25852747.
This commit is contained in:
Robert Kaussow 2021-01-22 11:57:01 +01:00
parent 0e25852747
commit 90f4d344e8
No known key found for this signature in database
GPG Key ID: 65362AE74AF98B61

View File

@ -5,7 +5,6 @@ import (
"os"
"os/exec"
"strings"
"time"
"github.com/urfave/cli/v2"
)
@ -107,11 +106,7 @@ func commandBuild(build Build) *exec.Cmd {
args = append(args, "--platform", strings.Join(build.Platforms.Value()[:], ","))
}
cmd := exec.Command(dockerExe, args...)
copy(os.Environ(), cmd.Env)
cmd.Env = append(cmd.Env, fmt.Sprintf("DRONE_DOCKER_BUILD_TIME=%s", time.Now().Format(time.RFC3339)))
return cmd
return exec.Command(dockerExe, args...)
}
// helper function to add proxy values from the environment