bootstrap-rocky-9/install-gitlab-runner.sh

13 lines
489 B
Bash
Raw Normal View History

2024-12-09 01:41:28 +02:00
#!/usr/bin/env bash
2024-11-28 20:11:41 +02:00
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