uselagoon / lagoon

Lagoon, the developer-focused application delivery platform
https://docs.lagoon.sh/
Apache License 2.0
548 stars 148 forks source link

Replace Jenkins builds on any branch prefixed with `docs/` with github action #3689

Closed tobybellwood closed 3 months ago

tobybellwood commented 3 months ago

Currently, Jenkins builds and tests every PR generated. For a simple docs-only commit, this is not only an unnecessary use of resources, it adds time to the ability to propagate updates to the website.

This PR adds a check step into the Jenkins pipeline to check the source branch of a PR (and additionally any branch push, although docs/ is skipped in config already), and if it sees the docs/ prefix, it sets a variable that is then used to skip all remaining stages.

Additionally, it includes a github action that does a strict build on the docs, intended to fail on any error.