how to install gitlab runner to gitlab docker¶
1. Check gitlab exists and get the token¶
menu "admin -> setting -> runners" and check and get token and you can see list of runner that is running
Install gitlab-runner:
curl -L "https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.rpm.sh" | sudo bash
sudo yum install gitlab-runner
sudo gitlab-runner register : ( fill in the token from 1)
You can check runner ở step 2 by go to menu "admin -> setting -> runners"
Create the file .gitlab-ci.yml:
You can create file .gitlab-ci.yml in each project for check and tét the project