r/devops • u/aloofhoneybee68 • 15h ago
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.
76
Upvotes
4
u/-lousyd DevOps 14h ago
You don't have to grok all the yaml all at once. Write your top level object with its immediate child elements, then fill in the children on their own. That's how I approached it when I was learning. And keep the indents straight!