Мне нужно ускорить работу "развернуть". Ему не нужны исходники проекта, а нужны ТОЛЬКО АРТЕФАКТЫ.
Типичный .gitlab-ci.yml
(псевдо) выглядит так:
image: gcc
build:
stage: build
script:
- ./configure
- mkdir build && cd $_
- cmake ..
- make -sj8
artifacts:
paths:
- "build/*.elf"
deploy:
image: artifactory
variables:
- DO_NOT_CLONE: 1 ## WANT THIS OPTION
stage: deploy
script:
- push_artifacts build/*.elf
Проверьте переменную GIT_STRATEGY
:
variables:
GIT_STRATEGY: none
Из документации:
none also re-uses the project workspace, but skips all Git operations (including GitLab Runner’s pre-clone script, if present). It is mostly useful for jobs that operate exclusively on artifacts (e.g., deploy).