Git pre-commit hook to validate `.gitlab-ci.yml`
Description
Debugging .gitlab-ci.yml
errors after pushing to GitLab is an anti-pattern.
Proposal
Take http://blog.fgribreau.com/2017/04/validate-gitlab-gitlab-ciyml-one-liner.html and turn it into a blog post and documentation on how to automatically validate .gitlab-ci.yml
in a git pre-commit hook.
Links / references
Documentation blurb
(Write the start of the documentation of this feature here, include:
- Why should someone use it; what's the underlying problem.
- What is the solution.
- How does someone use this
During implementation, this can then be copied and used as a starter for the documentation.)