Skip to content

[Dogfood] Convert some existing templates to components - round 1

Problem

With the implementation of include:component syntax and input interpolation we would like to test the experience of writing, testing and using components.

Today we have various templates hosted on GitLab that we could try to convert to components and use they side-by-side to templates in order to compare the developer experience.

Proposal

  1. Identify a few templates we could convert to components.
  2. Create dedicated projects.
  3. test the components in CI.
  4. Use them as part of the dogfooding phase (e.g. in gitlab-org/gitlab pipelines).

We could start with choosing some of the templates used by gitlab-org/gitlab:

include:
  - template: Jobs/Code-Quality.gitlab-ci.yml
  - template: Jobs/SAST.gitlab-ci.yml
  - template: Jobs/Secret-Detection.gitlab-ci.yml
  - template: Jobs/Dependency-Scanning.gitlab-ci.yml
  - template: Jobs/License-Scanning.gitlab-ci.yml

NOTE We should also document the process of having a template -> component for without spec: input parameters as well as with input parameters.

Edited by Michael Eddington