From 90f4d344e85df958ebd4b9c0f37b2f80d30ee155 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Fri, 22 Jan 2021 11:57:01 +0100 Subject: [PATCH] Revert "feat: add env variable DRONE_DOCKER_BUILD_TIME to docker cmd" This reverts commit 0e25852747e270a88057eca08f5f672c8b767af2. --- plugin/docker.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/plugin/docker.go b/plugin/docker.go index 1cd30b1..cb38fb2 100644 --- a/plugin/docker.go +++ b/plugin/docker.go @@ -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