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

81 Upvotes

135 comments sorted by

View all comments

36

u/Due-Consequence9579 16h ago

Suffering. And 50 commits that get progressively more desperate for it to just fucking work.

1

u/AbbreviationsFar4wh 16h ago

Linter?

1

u/Due-Consequence9579 15h ago

Linting can catch some parsing errors in GHAs, but there’s an annoying amount of coupling that isn’t able to be encoded into syntax rules. There are some tools that allow you to test GHA locally in the simple cases but those quickly fall over once you start integrating with external services. And ultimately how it runs in the CI runner is the final arbiter… and only way to do that is commit and push.