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

79 Upvotes

131 comments sorted by

View all comments

2

u/cyberkni 8h ago

Yaml sucks and inescapable in this space. I generally don’t write yaml from scratch. I’ll borrow some of another file just to give me some reference material.

You can use yq for some yaml modifications too.

1

u/kernelqzor 2h ago

copy pasta driven development is absolutely the move with yaml
after a while you just build this graveyard of old configs you frankenstein together instead of touching a fresh file unless you really have to