How to run pipelines
- register a runner
- config your pipeline
How to register a runner
- login as admin
- goto
/admin/runners - click on the button
New instance runner - click on the button
Create Runner - pull the runner docker image by
docker pull gitlab/gitlab-runner:v18.2.1 - start the runner
docker run -d -v /var/run/docker.sock:/var/run/docker.sock --name gisia-docker-runner gitlab/gitlab-runner:v18.2.1 - copy and run
docker exec -it gisia-docker-runner gitlab-runner register --url http://nix.test:8080 --token YOUR-RUNNER-TOKEN - click on the
View Runnersbutton, you should see your runner is online
How to config the pipeline yaml file for a project
- goto
/-/dashboard/projects - choose or create a project
- goto
/-/users/settings/keysto add your SSH Keys - use git to clone this project
- create
.gitlab-ci.ymland commit with the following content - then a pipeline should be created
.gitlab-ci.yml
```yaml
test-job:
script:- echo “Test is running…”
- echo “Test done”
```