Support YAML Anchors
See original GitHub issueDescribe the enhancement Support YAML anchors in in workflow files
Code Snippet
- env: &docker_cred
DOCKER_USER: ${{ secrets.DOCKER_USER }}
DOCKER_PASS: ${{ secrets.DOCKER_PASS }}
# ...
- env:
<<: *docker_cred
OR
anchors:
docker_hub_credentials: &docker_hub_credentials
credentials:
username: my-dockerhub-username
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
postgres_service: &postgres_service
postgres:
image: mdillon/postgis:9.6
<<: *docker_hub_credentials
Additional information This has been asked for before, in other places
Note to imlementors
This is generally handled by YAML parsers automatically. Perhaps it has been disabled, or a parser that does not support it is being used. This might be as simple as switching YAML parsers.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:667
- Comments:64 (1 by maintainers)
Top Results From Across the Web
YAML anchors | Bitbucket Cloud
When using Bitbucket Pipelines, YAML anchors reduce effort and make updating in bulk, easier.
Read more >YAML Examples for Anchors, Aliases, and Overrides - Linode
YAML anchors, aliases, overrides, and extensions help reduce the repetition of data in your YAML files. These features of YAML are discussed ...
Read more >Advanced YAML syntax cheatsheet
Anchors and Aliases are YAML constructions that allow you to reduce repeat syntax and extend existing data nodes. You can place Anchors (...
Read more >Don't Repeat Yourself with Anchors, Aliases and ...
YAML anchors and aliases let you reference and use the same data multiple times within a single YAML document. You can use them...
Read more >Kubernetes configuration with yaml anchors
YAML anchors are supported, but only for the same YAML file. You can't create the anchor ( & ) on a deployment file...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
3+ years of people complaining and u don’t take any action? Either, say u won’t do or do it already. not a big deal to implement.
@DanySK (and to a lesser degree @freitasmurillo), while I appreciate the support on issues, since upvotes help show priority, I don’t think hurling abuse at the maintainers or anyone else is going to get this done any faster. If either of you are professional software developers I’m sure you can relate to working on project’s whose feature requests exceed your team’s bandwidth. There are 300 open issues on this repository and some of them describe actual bugs. Surely this is not the highest priority ticket.
Please keep in mind there is a human on the other side reading these messages. Consider how you might react to someone who said as much to you.