Add kaniko cache

This commit is contained in:
Hackintosh Five 2023-06-19 10:53:04 +01:00
parent eea212c7df
commit 39f942c808

View File

@ -6,8 +6,13 @@ build:
image:
name: gcr.io/kaniko-project/executor:v1.11.0-debug
entrypoint: [""]
cache:
key: cache
paths:
- /cache/
script:
- /kaniko/executor
--cache --cache-dir=/cache --compressed-caching=false --use-new-run --cleanup
--context "${CI_PROJECT_DIR}"
--dockerfile "${CI_PROJECT_DIR}/Dockerfile"
--destination "${CI_REGISTRY_IMAGE}:${CI_COMMIT_SHA}"