diff --git a/README.md b/README.md index 91fe09a..95bd6a9 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,8 @@ Modified by [ODIT.Services](https://odit.services) to enable local builds to tar * `nopush`: Disable Pushing to registry (boolean) * `tarpath`: Export the image to tar (relative path) * `cache`: Use cached intermediate containers (boolean) +* `newrun`: Use the experimental run implementation for detecting changes without requiring file system snapshots. (boolean) +* `snapshot_mode`: Set how kaniko will snapshot the filesystem (full,redo,time). * `skip_tls_verify`: Skip SSL/TLS certificate verification (boolean) * `build_args`: Pass custom arguments to docker build * `build_args_from_env`: Pass the envvars as custom arguments to docker build diff --git a/plugin.sh b/plugin.sh index 77afe7e..7ce9e62 100644 --- a/plugin.sh +++ b/plugin.sh @@ -38,6 +38,14 @@ if [[ -n "${PLUGIN_NOPUSH:-}" ]]; then NO_PUSH="--no-push" fi +if [[ -n "${PLUGIN_SNAPSHOT_MODE:-}" ]]; then + SNAPSHOT_MODE="--snapshotMode=${PLUGIN_TARPATH}" +fi + +if [[ -n "${PLUGIN_NEWRUN:-}" ]]; then + NEWRUN="--use-new-run" +fi + if [[ -n "${PLUGIN_TARPATH:-}" ]]; then TARPATH="--tarPath=${PLUGIN_TARPATH}" fi @@ -112,6 +120,8 @@ fi ${CACHE:-} \ ${NO_PUSH:-} \ ${TARPATH:-} \ + ${NEWRUN:-} \ + ${SNAPSHOT_MODE:-} \ ${CACHE_TTL:-} \ ${CACHE_REPO:-} \ ${TARGET:-} \