Commit 9af3efab authored by Alessio Caiazza's avatar Alessio Caiazza

Merge branch 'add-best-practice-to-ci-template-guide' into 'master'

Add best practice section to the CI Template guide

See merge request gitlab-org/gitlab!50036
parents dd605c8b 8c24d4f1
...@@ -65,6 +65,14 @@ users have to fix their `.gitlab-ci.yml` that could annoy their workflow. ...@@ -65,6 +65,14 @@ users have to fix their `.gitlab-ci.yml` that could annoy their workflow.
Please read [versioning](#versioning) section for introducing breaking change safely. Please read [versioning](#versioning) section for introducing breaking change safely.
### Best practices
- Avoid using [global keywords](../../ci/yaml/README.md#global-keywords),
such as `image`, `stages` and `variables` at top-level.
When a root `.gitlab-ci.yml` [includes](../../ci/yaml/README.md#include)
multiple templates, these global keywords could be overridden by the
others and cause an unexpected behavior.
## Versioning ## Versioning
Versioning allows you to introduce a new template without modifying the existing Versioning allows you to introduce a new template without modifying the existing
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment