r/devops • • Sep 09 '26

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.

122 Upvotes

161 comments sorted by

View all comments

136

u/aenae Sep 09 '26

You use an ide that handles indentation and some syntax checks. Personally i like intellij for it

27

u/Il_Falco4 Sep 09 '26

This. Use a tool that is fit for the job. I use nvim and it tells me if the indentation is off.

8

u/alexterm Sep 09 '26

And if you have a schema even better as it can validate it too!

6

u/HeligKo Sep 09 '26

This. The IDE handles re-indention when you make changes too. I don't think about it at all anymore.

3

u/Shidima Sep 09 '26

You do you, but i think intellij is a bit overkill to write yaml. I'm a nvim/Emacs user myself, but I would say use VS Code.

2

u/aenae Sep 10 '26

I don't use it just for yaml. Also shell scripts, python scripts, php scripts, java scripts code, database management etc.

Basically everything I edit.

1

u/bertiethewanderer Sep 10 '26

Funny - also an nvim user, and the reason being a big yaml templating project for helm library charts, because vscode is so bad with yaml, from a UX perspective!!

0

u/tehsuck Sep 09 '26

The problem is some people use 2 vs. 4 spaces or tabs etc. Good to have a standard across your org and tune your tools to it.

2

u/Shidima Sep 10 '26

This is not a problem if your pipeline uses a Linter to validate your yaml. Besides every company should have a coding standard.

1

u/Minimal-Matt Sep 10 '26

4 spaces is a borderline crime imho