Files
test/.drone.yml
moweishan 82c449b517
All checks were successful
continuous-integration/drone/push Build is passing
更新 .drone.yml
2025-12-31 02:28:09 +00:00

46 lines
1.2 KiB
YAML
Raw Permalink 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.
# ===================== 流水线1仅自动触发push到main分支=====================
kind: pipeline
type: docker
name: auto-pipeline-main # 自动流水线名称
clone:
disable: false
trigger:
event: [push] # 仅接收push事件
branch: [main] # 仅main分支
steps:
- name: print-auto-run
image: alpine:latest
environment:
REPO_UID: "{{ .repo.uid }}"
commands:
- echo ===================================
- echo 这是自动运行的流水线
- echo 自动运行
- echo ===================================
--- # Drone 支持一个文件多个流水线,用 --- 分隔
# ===================== 流水线2仅手动触发独立节点100%显示)=====================
kind: pipeline
type: docker
name: manual-pipeline-main # 手动流水线名称
clone:
disable: false
trigger:
event: [manual] # 仅接收手动触发事件,无其他过滤
steps:
- name: print-manual-run
image: alpine:latest
environment:
REPO_UID: "{{ .repo.uid }}"
commands:
- echo ===================================
- echo 🚀 独立手动流水线(必显示)
- echo 手动运行成功!
- echo ===================================