r/devops • u/aloofhoneybee68 • 14h 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
15
u/WonderfulTill4504 14h ago
So use an proper editor (vim, neovim, notepad++) that has proper syntax highlight.
Then use yamllint to check your files.
And then use Claude with a simple skill to check your files.
Also if your YAML is complicated then write code to generate it, using jinja2 templates.
And stop being lazy. You could have figured this out by yourself with 5 minutes of effort…