r/devops • u/aloofhoneybee68 • Sep 09 '26
Tools Beginner DevOps question: Do experienced engineers actually write YAML like this?
I’m still learning CI/CD and I recently tried writing a simple CI/CD pipeline using GitHub Actions.
Honestly, writing the YAML felt more difficult than I expected . The indentation, nesting etc felt pretty hard/ painful.
For those of you who work with DevOps professionally: is this actually how you write your pipelines, or are there shortcuts/tools/templates that make it easier?
Just trying to understand what the normal workflow is in the real world.
122
Upvotes
View all comments
Show parent comment
3
u/Dogeek Sep 10 '26
YAML 1.2 is a superset of JSON. YAML 1.1 is not, and it's the most common version of YAML out there.
Also using brackets and braces is fine if you're consistent with them. A simple array of numbers or strings is easier to read with brackets rather than flow-style if there are not too many elements.
Also, KYAML (the subset of YAML for kube, added recently) uses brackets and braces extensively (for basically everything) which is certainly a design choice.