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