Instance level template repository
File templates are a really useful feature but they would be much more useful if they could be customized by instance and group. We should make this possible, extending https://gitlab.com/gitlab-org/gitlab-ee/issues/5986 with additional template types.
Proposal
Instance admins are able to select one repository as a source of templates, in addition to GitLab vendored templates. All instance templates and GitLab templates will be available to all projects.
Only templates should be stored in the default branch of the instance template repository will be visible.
The template repository should support templates for:
Template | Example template file | Prettified template name | Status |
---|---|---|---|
Dockerfile |
Dockerfile/Node-Alpine.dockerfile |
Node-Alpine |
|
.gitignore |
gitignore/Rails.gitignore |
Rails |
|
.gitlab-ci.yml |
gitlab-ci/Jekyll.yml |
Jekyll |
|
LICENSE |
LICENSE/ACME Corp.txt |
ACME Corp |
DONE |
Designs
Admin area → Settings | Template chooser dropdown (in file editor) |
---|---|
- Templates should be shown at the top of the drop down above GitLab default templates
Links
https://gitlab.com/gitlab-org/gitlab-ee/issues/1602