Some checks failed
continuous-integration/drone/push Build encountered an error
34 lines
730 B
YAML
34 lines
730 B
YAML
kind: pipeline
|
|
type: docker
|
|
name: main-automated-pipeline
|
|
|
|
trigger:
|
|
event:
|
|
- push
|
|
- promote
|
|
- manual
|
|
|
|
steps:
|
|
- name: print-auto-run
|
|
image: alpine:latest
|
|
when:
|
|
event: push
|
|
branch: main
|
|
commands:
|
|
- echo =====================================
|
|
- echo 这是自动运行的流水线
|
|
- echo 自动运行
|
|
- echo ====================================
|
|
|
|
- name: print-manual-trigger
|
|
image: alpine:latest
|
|
when:
|
|
event:
|
|
- promote
|
|
- manual
|
|
target: production
|
|
commands:
|
|
- echo =====================================
|
|
- echo 这是手动触发的流水线
|
|
- echo 手动触发
|
|
- echo ===================================== |