Multiple drone.yml

a project want to have multiple pipline, such as test、production…
so can we create multiple drone.yml, such as drone_test.yml、drone_pro.yaml?

Drone does not support multiple yaml files. Instead, drone supports multi-document yaml files. For example

---
kind: pipeline
name: pipeline_a

steps:
- name: build
  image: golang
  commands:
  - go build

trigger:
  branch:
  - master

---
kind: pipeline
name: pipeline_b

steps:
- name: test
  image: golang
  commands:
  - go test

trigger:
  branch:
  - develop
1 Like

Got it.
Tanks :grinning: