diff --git a/action.yaml b/action.yaml index 6cad83e..9199e0b 100644 --- a/action.yaml +++ b/action.yaml @@ -11,6 +11,9 @@ inputs: password: description: Registry password required: true + cache: + description: Use registry cache + default: true runs: using: docker diff --git a/build.sh b/build.sh index 76bff82..ebdf890 100755 --- a/build.sh +++ b/build.sh @@ -19,7 +19,7 @@ if [ -z "$IMAGEAPP" ]; then fi /kaniko/executor \ - --cache=true \ + --cache="${INPUT_CACHE}" \ --context "${INPUT_DOCKERFILE%/*}" \ --dockerfile "$INPUT_DOCKERFILE" \ --destination "$IMAGEAPP"