We don’t explicitly document anchors since this is a generic Yaml feature as opposed to a Drone feature. Perhaps we should consider providing some examples or a primer, or even linking to external Yaml tutorials … However, in the meantime, any generic tutorial on anchors should be applicable to Drone.
You can also use the following generic yaml tool to test out anchors:
For example, you can enter the below yaml in the above link to see how anchors work:
image: &image golang:1.16
- name: build
- go build
- name: test
- go test