From c9a1c6233fe64138b28da33393e0474c696d77fe Mon Sep 17 00:00:00 2001 From: ange Date: Wed, 9 Oct 2024 07:33:34 +0700 Subject: [PATCH] feat: cache variable --- action.yaml | 3 +++ build.sh | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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"