GitLab CI 手动启动管道,仅包含
GitLab CI manual start of pipeline with only include
我有一个只包含这样的管道
---
include:
- project: "test/devops/gitlabci-templates"
ref: "2.0"
file: "templates/terraform/all.yml"
有没有办法添加规则或手动触发它而不是在每次推送时启动它?
include:
s support use of rules:
。您可以直接在模板包含中执行此操作,也可以为模板中指定的作业执行此操作。
include:
- project: "test/devops/gitlabci-templates"
ref: "2.0"
file: "templates/terraform/all.yml"
rules:
- if: '$CI_PIPELINE_SOURCE == "web"'
我有一个只包含这样的管道
---
include:
- project: "test/devops/gitlabci-templates"
ref: "2.0"
file: "templates/terraform/all.yml"
有没有办法添加规则或手动触发它而不是在每次推送时启动它?
include:
s support use of rules:
。您可以直接在模板包含中执行此操作,也可以为模板中指定的作业执行此操作。
include:
- project: "test/devops/gitlabci-templates"
ref: "2.0"
file: "templates/terraform/all.yml"
rules:
- if: '$CI_PIPELINE_SOURCE == "web"'