CI/CD Repository SetupΒΆ
The existing repositories described above will not be available to the new user,
and as such, any repository can be used to test CICD pipelines. Feel free to import
an existing project with a simple pipeline configuration or create a new repo from scratch.
In the case of the latter, the .gitlab-ci.yml is the file which is used to execute pipelines and jobs. To
properly select the runner when executing a pipeline, the tags in the YAML
file must match the tags in the runner registration exactly. See
CI Docs for more information on the YAML file. In this instance, the tags
provided to the runner are: trilab-testing. An acceptable example .gitlab-ci.yml is as follows:
test-job:
tags:
- trilab-testing
before_script:
- date
- hostname
script:
- id
- env
after_script:
- id