Uploaded from github, added FreeBSD VMs support
This commit is contained in:
12
vm_example_scripts/gitlab_runner.sh
Executable file
12
vm_example_scripts/gitlab_runner.sh
Executable file
@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
#SOURCE: https://about.gitlab.com/install/#debian
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
cat <<EOF | sudo tee /etc/apt/preferences.d/pin-gitlab-runner.pref
|
||||
Explanation: Prefer GitLab provided packages over the Debian native ones
|
||||
Package: gitlab-runner
|
||||
Pin: origin packages.gitlab.com
|
||||
Pin-Priority: 1001
|
||||
EOF
|
||||
sudo apt-get update
|
||||
curl -L "https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.deb.sh" | sudo bash
|
||||
sudo apt-get -y install gitlab-runner
|
||||
Reference in New Issue
Block a user