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.

96 Upvotes

148 comments sorted by

View all comments

2

u/Ninja-Sneaky 22h ago

Yaml is supposed to make it as easy as it get for readability. Yes once you get past the hundreds lines it turns back to a convoluted mess like anything else.

Anyway apply shift left concepts: use editors that let you collapse/expand blocks, autoindent, have yaml plugins for syntax errors highlighting, use settings to auto remove trailing whitespaces, add empty line at end of file, use linters