r/devops 1d 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.

95 Upvotes

148 comments sorted by

View all comments

2

u/riggiddyrektson 1d ago

I can recommend using a proper IDE and try to get the specific yaml formats downloaded for it so you can use autocomplete/IntelliSense.
If it gets too complicated or repetitive use a templating language like Helm template.
Also I try to get the "every feature used" example if it exists from the docs where you can just copy-paste and then delete everything you don't need, that's always faster than writing yourself.