我需要加快工作“部署”。它不需要项目源,但只需要工件。
典型.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
Run Code Online (Sandbox Code Playgroud)