Skip to content

Commit

Permalink
fix: don't push image when skip_unchanged_digest is set
Browse files Browse the repository at this point in the history
Kaniko default behavior changed, `--tarPath` alone is not enough to skip the push to registery, `--no-push` is now required as well.

Reference:
GoogleContainerTools/kaniko#1503
  • Loading branch information
somdoron authored Jun 8, 2021
1 parent 8a2a62f commit ca5cd8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ca5cd8e

Please sign in to comment.