This commit is contained in:
@@ -2,14 +2,14 @@ kind: pipeline
|
||||
type: docker
|
||||
name: main-automated-pipeline
|
||||
|
||||
# 步骤1:触发条件 - 当 main 分支有推送时自动执行
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- push
|
||||
branch:
|
||||
- main
|
||||
|
||||
# 步骤2:执行的任务
|
||||
|
||||
steps:
|
||||
- name: print-auto-run
|
||||
image: alpine:latest
|
||||
@@ -24,7 +24,7 @@ steps:
|
||||
- echo "====================================="
|
||||
|
||||
|
||||
# 步骤1:触发条件 - 手动触发
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- promote
|
||||
@@ -32,7 +32,6 @@ trigger:
|
||||
target:
|
||||
- production
|
||||
|
||||
# 步骤2:执行的任务
|
||||
steps:
|
||||
- name: print-manual-trigger
|
||||
image: alpine:latest
|
||||
|
||||
Reference in New Issue
Block a user