# Support of YAML inheritance in .drone.yml

**URL:** https://drone.discourse.group/t/support-of-yaml-inheritance-in-drone-yml/1996
**Category:** Drone Support
**Created:** [March 31, 2021, 6:23am UTC](https://drone.discourse.group/t/support-of-yaml-inheritance-in-drone-yml/1996 "2021-03-31T06:23:06Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![adam](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/adam/32/4692_2.png) [@adam](https://drone.discourse.group/u/adam)
#### Post date: [March 31, 2021, 6:23am UTC](https://drone.discourse.group/t/support-of-yaml-inheritance-in-drone-yml/1996/1 "2021-03-31T06:23:06Z")

</div>

Is there any way to use yaml inheritances in .drone.yml file ? For example - i have 3 pipeline with some steps and in some of them I need to use exactly same docker image. it would be handy to separate image into yaml template kind of that way:

```auto
image: &image
    image: some-docker-image

--- 
kind: pipeline
(...)
steps: 
    - name: test1A
      <<: *image
      (...)
    - name: test1B
      <<: *image
      (...)
--- 
kind: pipeline
(...)
steps: 
    - name: test2A
      <<: *image
      (...)

```

---

<div class="post-metadata">

### Author: ![csgitharness](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/csgitharness/32/904_2.png) [@csgitharness](https://drone.discourse.group/u/csgitharness)
#### Post date: [April 6, 2021, 12:08pm UTC](https://drone.discourse.group/t/support-of-yaml-inheritance-in-drone-yml/1996/2 "2021-04-06T12:08:04Z")

</div>

@adam,

See [How to reduce Yaml boilerplate](http://discuss.harness.io/t/how-to-reduce-yaml-boilerplate/3704)

You also have the option to create your own extension to extend the yaml syntax and / or implement custom pre-processing:  
[https://docs.drone.io/extensions/conversion/](https://docs.drone.io/extensions/conversion/)

Regards,  
Harness Support
