docker-build: fix cache

Signed-off-by: Frank Villaro-Dixon <frank@villaro-dixon.eu>
This commit is contained in:
Frank Villaro-Dixon 2022-07-25 23:26:09 +02:00
parent 98f56b5013
commit d43d090a04

View file

@ -33,10 +33,7 @@ docker-build-commit:
extends: .docker_build
script: |
/kaniko/executor \
--force \
--cache=true \
--cache-copy-layers \
--cache-repo=$CI_REGISTRY \
--context "${CI_PROJECT_DIR}/${DOCKERFILE_LOCATION}" \
--dockerfile "${CI_PROJECT_DIR}/${DOCKERFILE_LOCATION}/${DOCKERFILE_NAME}" \
--destination "${CI_REGISTRY_IMAGE}/${CI_COMMIT_REF_NAME}:${CI_COMMIT_SHORT_SHA}" \