test/.drone.yml
admin 43c6d27537
Some checks reported errors
continuous-integration/drone/push Build was killed
更新 .drone.yml
2025-03-28 09:28:54 +00:00

24 lines
579 B
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.

# 第一个 Pipeline
kind: pipeline
type: docker
name: pipeline-1
steps:
- name: build
image: swr.cn-north-4.myhuaweicloud.com/ddn-k8s/gcr.io/iguazio/alpine:3.17
commands:
- echo "Pipeline 1 执行中..."
# 第二个 Pipeline依赖第一个
---
kind: pipeline
type: docker
name: pipeline-2
depends_on: # 定义依赖关系
- pipeline-1 # 需等待 pipeline-1 成功完成
steps:
- name: deploy
image: swr.cn-north-4.myhuaweicloud.com/ddn-k8s/gcr.io/iguazio/alpine:3.17
commands:
- echo "Pipeline 1 完成后Pipeline 2 开始执行"