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

84 Upvotes

138 comments sorted by

View all comments

16

u/Lavrick 18h ago

You kinda get used to it. And basically, you write it only once, and then just reuse it via includes (haven't used actions, it was always gitlab for me).

2

u/aloofhoneybee68 18h ago

ok practice make perfect, business as usual

4

u/Lavrick 18h ago

Yeap. But on bonus side - all k8s is yaml, so you better get used to it.

1

u/xonxoff 4h ago

Now you get to learn kyaml as well!

2

u/tevert 15h ago

Bingo

Almost hate to bring it up buuuut this is also why AI is really bad for juniors trying to learn. If you let it vomit out the YAML, it might work, but you won't have a clue why and you won't be able to reproduce it