Files
test/.drone.yml
moweishan b5be9c3408
All checks were successful
continuous-integration/drone/push Build is passing
更新 .drone.yml
2025-12-31 02:22:58 +00:00

42 lines
1.0 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
kind: pipeline
type: docker
name: main-automated-pipeline
# 启用模板
clone:
disable: false
trigger:
event:
- push
- promote
- manual
steps:
# ========== 原有push触发的自动运行节点 ==========
- name: print-auto-run
image: alpine:latest
when:
event: push
branch: main
environment:
REPO_UID: "{{ .repo.uid }}"
commands:
- echo ===================================
- echo 这是自动运行的流水线
- echo 自动运行
- echo ===================================
# ========== 新增:手动触发的专属运行节点 ==========
- name: print-manual-run
image: alpine:latest
# 核心条件:仅当触发事件为 manual 时执行
when:
event: manual
environment:
REPO_UID: "{{ .repo.uid }}"
commands:
- echo ===================================
- echo 这是手动触发的流水线
- echo 手动运行(支持手动点击/API触发
- echo ===================================