12 lines
480 B
Bash
Executable File
12 lines
480 B
Bash
Executable File
#!/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 |