From 5555597b51b487447474d249f47a16f36ccf265a Mon Sep 17 00:00:00 2001 From: Erik Brakkee Date: Sun, 17 Nov 2024 20:11:42 +0100 Subject: [PATCH] correct passing of GO env vars --- vars/buildcontainer.groovy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vars/buildcontainer.groovy b/vars/buildcontainer.groovy index 98fe94e..e371450 100644 --- a/vars/buildcontainer.groovy +++ b/vars/buildcontainer.groovy @@ -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} \\ -- 2.31.1