From 6893b42a5f9adf9fedf667a898e2645784b23907 Mon Sep 17 00:00:00 2001 From: Erik Brakkee Date: Sun, 17 Nov 2024 20:15:54 +0100 Subject: [PATCH] robustness against empty mirror var --- vars/buildcontainer.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vars/buildcontainer.groovy b/vars/buildcontainer.groovy index e371450..643cec4 100644 --- a/vars/buildcontainer.groovy +++ b/vars/buildcontainer.groovy @@ -25,7 +25,7 @@ def call(Map args) { mirrorArg = "" if (args.mirror) { - mirrorArg = "--registry-mirror ${mirrorArg}" + mirrorArg = "--registry-mirror '${mirrorArg}'" } container('kaniko') { sh """ -- 2.31.1