feat: cache variable

This commit is contained in:
ange 2024-10-09 07:33:34 +07:00
parent 1ec903e928
commit c9a1c6233f
Signed by: ange
GPG Key ID: 9E0C4157BB7BEB1D
2 changed files with 4 additions and 1 deletions

View File

@ -11,6 +11,9 @@ inputs:
password:
description: Registry password
required: true
cache:
description: Use registry cache
default: true
runs:
using: docker

View File

@ -19,7 +19,7 @@ if [ -z "$IMAGEAPP" ]; then
fi
/kaniko/executor \
--cache=true \
--cache="${INPUT_CACHE}" \
--context "${INPUT_DOCKERFILE%/*}" \
--dockerfile "$INPUT_DOCKERFILE" \
--destination "$IMAGEAPP"