相关疑难解决方法(0)

使用 GitLab CI 如何禁用一项作业的存储库克隆?

我需要加快工作“部署”。它不需要项目源,但只需要工件。

如何为唯一的工作禁用项目克隆?

典型.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)

yaml gitlab-ci

13
推荐指数
1
解决办法
3165
查看次数

标签 统计

gitlab-ci ×1

yaml ×1