Skip to content
Snippets Groups Projects
Commit b09f9637 authored by Natalia Miakushina's avatar Natalia Miakushina Committed by Roman Azarenko
Browse files

CI: enable cache for Kaniko (IOP-9341)

parent 69154f65
No related branches found
No related tags found
1 merge request!1added cache for kaniko
Pipeline #90472 passed
......@@ -18,6 +18,9 @@ docker:
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
- |
/kaniko/executor \
--cache \
--cache-copy-layers \
--cache-repo="${CI_REGISTRY_IMAGE}/cache" \
--context "${CI_PROJECT_DIR}" \
--dockerfile "${CI_PROJECT_DIR}/Dockerfile" \
--destination "${CI_REGISTRY_IMAGE}:${CONTAINER_TAG}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment