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

Add kaniko cache

parent 74de37f9
Pipeline #8842 passed with stages
in 1 minute and 22 seconds
......@@ -14,6 +14,9 @@ build:
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [ "" ]
cache:
paths:
- cache
only:
refs:
- master
......@@ -33,7 +36,7 @@ build:
}
}
EOF
- /kaniko/executor --cache=true --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-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