fix(CI): change path to cache registry

This commit is contained in:
bmartins 2023-04-03 11:19:21 +02:00
parent 645bd6f4d6
commit 9d41a73868
2 changed files with 3 additions and 2 deletions

View File

@ -47,7 +47,8 @@ build-image:
extends: .kaniko_build
variables:
PUSH_IMAGE: "true"
REGISTRY_IMAGE_PATH: "${HARBOR_HOST}/${HARBOR_PROJECT}/${CI_PROJECT_NAME}:${CI_COMMIT_REF_NAME}"
REGISTRY_PATH: "${HARBOR_HOST}/${HARBOR_PROJECT}"
REGISTRY_IMAGE_PATH: "${REGISTRY_PATH}/${CI_PROJECT_NAME}:${CI_COMMIT_REF_NAME}"
deploy-image:
stage: deploy

View File

@ -59,7 +59,7 @@ variables:
fi
- /kaniko/executor
--cache=true
--cache-repo=$CI_REGISTRY_IMAGE/cache
--cache-repo=${REGISTRY_PATH}/cache
--context "${KANIKO_CONTEXT_DIR}"
--dockerfile "${DOCKER_FILE_PATH}/${DOCKER_FILE_NAME}" ${KANIKO_BUILD_ARGS}
--destination "${REGISTRY_IMAGE_PATH}" "${PUSH_IMAGE}"