Gitlab CICD 从0到1

林塬

关注

阅读 115

2023-03-04

一、基本语法 

#基础语法,stage为 build、test ,build-job ,test-job1,job2
stages:
- build
- test

build-code-job:
stage: build
script:
- echo "Check the ruby version, then build some Ruby project files:"

test-code-job1:
stage: test
tags:
- cicd
script:
- echo "If the files are built successfully, test some files with one command:"

test-code-job2:
stage: test
tags:
- cicd
script:
- echo "If the files are built successfully, test other files with a different command:"

lock to this project ,no  不锁定目   |   can run untagged jobs , yes  可以运行untag job

Gitlab CICD 从0到1_.gitlab-ci.yml

精彩评论(0)

0 0 举报