Commit 1f6e3322 authored by Miklós Tóth's avatar Miklós Tóth 🤷
Browse files

Fix kaniko cache

parent a7b78850
Pipeline #8843 passed with stages
in 1 minute and 14 seconds
......@@ -21,6 +21,7 @@ build:
refs:
- master
script:
- mkdir -p cache
- TAG=latest
- |
[[ ! "${CI_COMMIT_REF_NAME:-master}" = "master" ]] && TAG="$CI_COMMIT_REF_NAME"
......@@ -36,7 +37,7 @@ build:
}
}
EOF
- /kaniko/executor --cache=true --cache-dir=$CI_PROJECT_DIR/cache --use-new-run --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination "${CI_REGISTRY_IMAGE}:${TAG}" --destination "${CI_REGISTRY_IMAGE}:${CI_COMMIT_SHORT_SHA}"
- /kaniko/executor --cache=true --cache-repo="${CI_REGISTRY_IMAGE}-cache:${CI_COMMIT_SHORT_SHA}" --cache-dir=$CI_PROJECT_DIR/cache --use-new-run --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination "${CI_REGISTRY_IMAGE}:${TAG}" --destination "${CI_REGISTRY_IMAGE}:${CI_COMMIT_SHORT_SHA}"
deploy:
stage: deploy
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment