From ca5cd8e5fdd49ffdb18a5234b15fc84bc54ecb17 Mon Sep 17 00:00:00 2001 From: Doron Somech Date: Tue, 8 Jun 2021 15:49:18 +0300 Subject: [PATCH] fix: don't push image when skip_unchanged_digest is set Kaniko default behavior changed, `--tarPath` alone is not enough to skip the push to registery, `--no-push` is now required as well. Reference: https://github.com/GoogleContainerTools/kaniko/pull/1503 --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index ebbac0e..0ea868c 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -61,7 +61,7 @@ export DOCKERFILE="--dockerfile $CONTEXT_PATH/${INPUT_BUILD_FILE:-Dockerfile}" export TARGET=${INPUT_TARGET:+"--target=$INPUT_TARGET"} if [ ! -z $INPUT_SKIP_UNCHANGED_DIGEST ]; then - export DESTINATION="--digest-file digest --tarPath image.tar --destination $IMAGE" + export DESTINATION="--digest-file digest --no-push --tarPath image.tar --destination $IMAGE" else export DESTINATION="--destination $IMAGE" if [ ! -z $IMAGE_LATEST ]; then