diff options
Diffstat (limited to 'gitlab-ci-runner')
-rw-r--r-- | gitlab-ci-runner/etc/systemd/system/ci-runner-units.tar | bin | 0 -> 10240 bytes | |||
-rw-r--r-- | gitlab-ci-runner/manifest | 8 | ||||
-rwxr-xr-x | gitlab-ci-runner/usr/share/gitlab-install/install-runner | 21 |
3 files changed, 29 insertions, 0 deletions
diff --git a/gitlab-ci-runner/etc/systemd/system/ci-runner-units.tar b/gitlab-ci-runner/etc/systemd/system/ci-runner-units.tar Binary files differnew file mode 100644 index 00000000..45ebe48e --- /dev/null +++ b/gitlab-ci-runner/etc/systemd/system/ci-runner-units.tar diff --git a/gitlab-ci-runner/manifest b/gitlab-ci-runner/manifest new file mode 100644 index 00000000..a5e8e76a --- /dev/null +++ b/gitlab-ci-runner/manifest @@ -0,0 +1,8 @@ +0040755 0 0 /etc +0040755 0 0 /etc/systemd +0040755 0 0 /etc/systemd/system +0100644 0 0 /etc/systemd/system/ci-runner-units.tar +0040755 0 0 /usr +0040755 0 0 /usr/share +0040755 0 0 /usr/share/gitlab-install +0100755 0 0 /usr/share/gitlab-install/install-gitlab diff --git a/gitlab-ci-runner/usr/share/gitlab-install/install-runner b/gitlab-ci-runner/usr/share/gitlab-install/install-runner new file mode 100755 index 00000000..ca5a6cce --- /dev/null +++ b/gitlab-ci-runner/usr/share/gitlab-install/install-runner @@ -0,0 +1,21 @@ +#!/bin/sh + +set -e + +gem install bundler + +git config --global http.sslVerify false +git config --global user.name 'GitLab CI Runner' +git config --global user.email 'ci_runner@localhost' +git config --global core.autocrlf input + +git clone https://gitlab.com/gitlab-org/gitlab-ci-runner.git +cd gitlab-ci-runner + +bundle install --deployment +bundle exec ./bin/setup +nohup bundle exec ./bin/runner & + +cd /etc/systemd/system +tar -xf ci-runner-units.tar +systemctl enable gitlab-ci-runner.service |