correct passing of GO env vars
authorErik Brakkee <erik@brakkee.org>
Sun, 17 Nov 2024 19:11:42 +0000 (20:11 +0100)
committerErik Brakkee <erik@brakkee.org>
Sun, 17 Nov 2024 19:11:42 +0000 (20:11 +0100)
vars/buildcontainer.groovy

index 98fe94ee1df1d394d26ed45964aab99fcbf33d56..e37145036072275d7787cad1258db56f9e5c65be 100644 (file)
@@ -31,8 +31,8 @@ def call(Map args) {
     sh """
       echo "Building container with settings: ${args}"
       /kaniko/executor $mirrorArg \\
-         --build-arg GOPROXY="$GOPROXY" \\
-         --build-arg GOSUMDB="$GTOSUMDB" \\
+         --build-arg GOPROXY="${env.GOPROXY}" \\
+         --build-arg GOSUMDB="${env.GOSUMDB}" \\
          --dockerfile ${args.dockerfile} \\
          --cache=${args.cache} --cache-ttl=${args.cachettl} \\
          --context \$(  pwd )/${args.context} \\