首页 > 其他分享 > GitLab CICD Day 05 - 工作階段以及相依性

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

时间:2023-02-13 21:32:02浏览次数:51  
标签:shell script CICD GitLab echo build deploy 05 stage

  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"]


标签:shell,script,CICD,GitLab,echo,build,deploy,05,stage
From: https://blog.51cto.com/u_12391275/6054720

相关文章