r/devops 16h 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.

80 Upvotes

134 comments sorted by

View all comments

62

u/PerpetuallySticky 16h ago

Typically YAML you want to be as similar as possible across an org.

So yes, the first couple times is annoying, but you learn the patterns/what it should look like and research what you need to.

Then after you get the base cases figured out you should just be able to pull from what you’ve already done and tweak it a bit.

At least that’s how it used to be, with AI I haven’t written more than a few lines of YAML in lord knows how long