How to run pipelines

  1. register a runner
  2. config your pipeline

How to register a runner

  1. login as admin
  2. goto /admin/runners
  3. click on the button New instance runner
  4. click on the button Create Runner
  5. pull the runner docker image by docker pull gitlab/gitlab-runner:v18.2.1
  6. 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
  7. copy and run docker exec -it gisia-docker-runner gitlab-runner register --url http://nix.test:8080 --token YOUR-RUNNER-TOKEN
  8. click on the View Runners button, you should see your runner is online

How to config the pipeline yaml file for a project

  1. goto /-/dashboard/projects
  2. choose or create a project
  3. goto /-/users/settings/keys to add your SSH Keys
  4. use git to clone this project
  5. create .gitlab-ci.yml and commit with the following content
  6. then a pipeline should be created ### .gitlab-ci.yml ```yaml test-job: script:
    • echo “Test is running…”
    • echo “Test done” ```