0
点赞
收藏
分享

微信扫一扫

GitLab CICD Day 05 - 工作階段以及相依性

infgrad 2023-02-13 阅读 105
  1. stage编排

stages:
- testing # stage编排
- build
- deploy

run_test: #Job
stage: testing
tags:
- shell #Gitlab-runner
script:
- echo "执行测试"

build_image:
stage: build
tags:
- shell
script:
- echo "打包镜像"

deploy_to_qa:
stage: deploy
tags:
- shell
script:
- echo "部署到QA"

执行结果:

    GitLab CICD Day 05 - 工作階段以及相依性_gitlab cicd




  1. needs依赖性

Job1:
Stage: A
Job2:
Stage: B
needs: ["Job1"]


举报

相关推荐

0 条评论