At the moment, Drone allows us to configure many pipelines in .drone.yml
file. However, if you have set up, for example, 10 or more pipelines, then, due to the general “congestion” of .drone.yml
file making even small changes will be a bit difficult.
As a solution, I would like to be able, for example, to describe the steps section in separate .yaml files and include them in .drone.yml
.
Like:
.drone.yml
kind: pipeline
type: docker
name: default
trigger:
event:
- push
include: pipelines/default.yml
pipelines/default.yml
steps:
- name: greeting
image: alpine
commands:
- echo hello
- echo world
So, the user will be able to divide into different files the sequence of execution of the pipeline and the settings of the pipeline itself