blob: d16dec14b139c1998e16cb12aae208861a9dc684 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#!/bin/bash
#
# Installs GitLab Runner.
#
# Parameters
SHARE="$1"
LIB="$2"
# Include basic functions
. $LIB/trashman/functions || exit 1
. $LIB/trashman/debian || exit 1
# Check for an existing GitLab Runner installation
if which gitlab-runner &> /dev/null; then
echo "GitLab Runner already installed, skipping"
exit
fi
# Setup GitLab Debian repositories
# See https://docs.gitlab.com/runner/install/linux-repository.html
$SUDO $SHARE/gitlab-runner/unix/linux/debian/files/script.deb.sh
# Install GitLab Runner
trashman_apt_install gitlab-runner
|