Gitlab cicd配置注意点

include不要包含关键字

1
2
3
4
5
6
7
8
stages:
- build
- deploy
- publish

# 设置一个全局 before_script,其他 job 会继承它
include:
- local: 'ssh-setup.yml'

包含了ssh关键字会报错

1
jobs setup ssh config should implement the script:, run:, or trigger: keyword