首页
学习
活动
专区
圈层
工具
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

gitlab-ci.yml 自定义多个stages. CI/CD 自定义多个阶段的执行顺序

使用全局变量stages定义多个stage. 会按照顺序执行.

代码语言:javascript
复制
stages:
  - build
  - test
  - publish
  - deploy
  - deploy-notify

build:
  stage: build
  script:
  - echo 'installing node_modul'
  only:
  - master

test-cover:
  stage: test
  script:
  - echo 'test-cover'
  
test-v:
  stage: test
  script:
  - echo 'test-v'
  
  
publish:
  stage: publish
  script:
  - echo 'publish product websit'

  
deploy:
  stage: deploy
  script:
  - echo 'deploy product websit'

 
dingding:
  stage: deploy-notify
  script:
  - echo 'deploy-notify  product websit dingding'

以上的流水线配置执行效果是如此

下一篇
举报
领券