Support multiple templates from the same pipeline

When trying to run multiple templates from the same pipeline, only the first template is running -

kind: template
load: deploy.yml
data:
  stage: dev
  service: dummy
  values:
    test: 123
---
kind: template
load: deploy.yml
data:
  stage: demo
  service: dummy

does drone support multiple templates? if not, how this can be achieved?

Hello @Amit_Baranes

Unfortunately this is not currently supported, but there is an open feature proposal Allow using multiple templates per .drone.yml file · Issue #27 · drone/proposal · GitHub

Please subscribe to that issue and give it a :+1:

1 Like