single snapshot seems to prevent layers from being added as expected.

This commit is contained in:
Hyatt 2022-01-03 12:16:41 -06:00
parent fb37a042f8
commit da028c5101
Signed by: nhyatt
GPG Key ID: C50D0BBB5BC40BEA

View File

@ -66,7 +66,7 @@ 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 --single-snapshot --context \"${workspace}\" -f \"${workspace}/Dockerfile\" --destination \"${repository}/library/kaniko:latest\""
sh "/kaniko/executor --context \"${workspace}\" -f \"${workspace}/Dockerfile\" --destination \"${repository}/library/kaniko:latest\""
}
}
}