Before start
To enable Gitlab-CI, you need to install runners, it is an external service to help build your project. Make sure network between Gitlab server and runner is accessible.
Install
- Download gitlab-runner.exe to a folder, ex:
C:\GitLab-Runner Run Command prompt(Administrator):
1
gitlab-runner.exe register
Enter URL and token from
Project > settings > CI/CD > Runners settings, choose executor asshell.After register succeed, run
1
2gitlab-runner install
gitlab-runner startGo to
Project > settings > CI/CD > Runners settingsagain, you should find your runner here- Start using the runner by creating first
.gitlab-ci.ymlin your project root folder
Update
Stop service:
1
2cd C:\GitLab-Runner
gitlab-runner stopDownload the newest binary and replace current
gitlab-runner.exe.Start service:
1
gitlab-runner start
Uninstall
Command prompt (Administrator):
1 | cd C:\GitLab-Runner |