question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support YAML Anchors

See original GitHub issue

Describe 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:open
  • Created 2 years ago
  • Reactions:667
  • Comments:64 (1 by maintainers)

github_iconTop GitHub Comments

84reactions
freitasmurillocommented, Aug 17, 2021

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.

63reactions
kyeoticcommented, Sep 2, 2021

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found