GitLab Runner
インストール方法
ここを見ればいい
GitLab の設定 → CI/CD → Runner のところにリンクがある
インストール
$ sudo curl -L https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.rpm.sh | sudo bash
$ cat /etc/yum.repos.d/runner_gitlab-runner.repo
[runner_gitlab-runner] name=runner_gitlab-runner baseurl=https://packages.gitlab.com/runner/gitlab-runner/el/7/$basearch repo_gpgcheck=1 gpgcheck=1 enabled=1 gpgkey=https://packages.gitlab.com/runner/gitlab-runner/gpgkey https://packages.gitlab.com/runner/gitlab-runner/gpgkey/runner-gitlab-runner-366915F31B487241.pub.gpg sslverify=1 sslcacert=/etc/pki/tls/certs/ca-bundle.crt metadata_expire=300 [runner_gitlab-runner-source] name=runner_gitlab-runner-source baseurl=https://packages.gitlab.com/runner/gitlab-runner/el/7/SRPMS repo_gpgcheck=1 gpgcheck=1 enabled=1 gpgkey=https://packages.gitlab.com/runner/gitlab-runner/gpgkey https://packages.gitlab.com/runner/gitlab-runner/gpgkey/runner-gitlab-runner-366915F31B487241.pub.gpg sslverify=1 sslcacert=/etc/pki/tls/certs/ca-bundle.crt metadata_expire=300
$ sudo yum install gitlab-runner (略) インストール: gitlab-runner.x86_64 0:11.11.1-1 完了しました!
登録
$ sudo gitlab-runner register Runtime platform arch=amd64 os=linux pid=25574 revision=5a147c92 version=11.11.1 Running in system-mode. Please enter the gitlab-ci coordinator URL (e.g. https://gitlab.com/): http://サーバ名:10080/ Please enter the gitlab-ci token for this runner: Z-eCM1HK1WQiwPJ4GfZr Please enter the gitlab-ci description for this runner: [サーバ名]: Please enter the gitlab-ci tags for this runner (comma separated): Registering runner... succeeded runner=Z-eCM1HK Please enter the executor: docker-windows, ssh, docker+machine, docker, docker-ssh, parallels, shell, virtualbox, docker-ssh+machine, kubernetes: shell Runner registered successfully. Feel free to start it, but if it's running already the config should be automatically reloaded!