bootstrap-rocky-9/install-gitlab-runner.sh
2024-11-28 20:11:41 +02:00

13 lines
488 B
Bash
Executable File

#!/usr/bin/env bah
wget -O "/usr/local/bin/gitlab-runner.in" \
"https://s3.dualstack.us-east-1.amazonaws.com/gitlab-runner-downloads/latest/binaries/gitlab-runner-linux-amd64" && \
mv -vf "/usr/local/bin/gitlab-runner.in" "/usr/local/bin/gitlab-runner" && \
chmod +x "/usr/local/bin/gitlab-runner"
useradd --comment 'GitLab Runner' --create-home gitlab-runner --shell /bin/bash
gitlab-runner install --user=gitlab-runner --working-directory=/home/gitlab-runner
gitlab-runner start