Add kaniko cache
This commit is contained in:
parent
eea212c7df
commit
39f942c808
@ -6,8 +6,13 @@ build:
|
|||||||
image:
|
image:
|
||||||
name: gcr.io/kaniko-project/executor:v1.11.0-debug
|
name: gcr.io/kaniko-project/executor:v1.11.0-debug
|
||||||
entrypoint: [""]
|
entrypoint: [""]
|
||||||
|
cache:
|
||||||
|
key: cache
|
||||||
|
paths:
|
||||||
|
- /cache/
|
||||||
script:
|
script:
|
||||||
- /kaniko/executor
|
- /kaniko/executor
|
||||||
|
--cache --cache-dir=/cache --compressed-caching=false --use-new-run --cleanup
|
||||||
--context "${CI_PROJECT_DIR}"
|
--context "${CI_PROJECT_DIR}"
|
||||||
--dockerfile "${CI_PROJECT_DIR}/Dockerfile"
|
--dockerfile "${CI_PROJECT_DIR}/Dockerfile"
|
||||||
--destination "${CI_REGISTRY_IMAGE}:${CI_COMMIT_SHA}"
|
--destination "${CI_REGISTRY_IMAGE}:${CI_COMMIT_SHA}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user