by funcDropShadow · 3y ago · 0 comments
Try writing non-trivial multi-line bash snippets for Gitlab CI in yaml. These change your opinion very fast.
2. “In yaml” could be a fun way to end all kinds of sentences describing challenging tasks ;)
1. Lint the code using ShellCheck, which IMO is essential for any shell
2. Run and test that code locally, or anywhere outside of the CI tool
It’s only marginally less convenient to externalise the code into a .sh file and load it in CI.
I still don't like YAML though