From ffb7b685ce14ac7b54831f2743be3a429adc3177 Mon Sep 17 00:00:00 2001 From: The_Spider Date: Mon, 3 Jan 2022 11:57:57 -0600 Subject: [PATCH] another attempt at single-snapshot --- build-kaniko.jenkins | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build-kaniko.jenkins b/build-kaniko.jenkins index b3a0501..496dbc9 100644 --- a/build-kaniko.jenkins +++ b/build-kaniko.jenkins @@ -78,12 +78,12 @@ spec: stage("Build Alpine with CA") { container("kaniko") { def DF = """FROM gcr.io/kaniko-project/executor:debug -COPY ./cosign /busybox/cosign +COPY ./cosign /usr/local/bin/cosign COPY ./kaniko-chain.crt /kaniko/ssl/certs/ca-certificates.crt """ sh "cp /kaniko/ssl/certs/ca-certificates.crt \"${workspace}/kaniko-chain.crt\"" writeFile(file: workspace + "/Dockerfile", text: DF) - sh "/kaniko/executor --context \"${workspace}\" -f \"${workspace}/Dockerfile\" --destination \"${repository}/library/kaniko:latest\"" + sh "/kaniko/executor --single-snapshot --context \"${workspace}\" -f \"${workspace}/Dockerfile\" --destination \"${repository}/library/kaniko:latest\"" } } }