2020-10-24 23:57:45 +05:30
|
|
|
# Download the binary for your system
|
|
|
|
sudo curl -L --output /usr/local/bin/gitlab-runner ${GITLAB_CI_RUNNER_DOWNLOAD_LOCATION}
|
|
|
|
|
2022-04-04 11:22:00 +05:30
|
|
|
# Give it permission to execute
|
2020-10-24 23:57:45 +05:30
|
|
|
sudo chmod +x /usr/local/bin/gitlab-runner
|
|
|
|
|
2022-04-04 11:22:00 +05:30
|
|
|
# Create a GitLab Runner user
|
2020-10-24 23:57:45 +05:30
|
|
|
sudo useradd --comment 'GitLab Runner' --create-home gitlab-runner --shell /bin/bash
|
|
|
|
|
2022-04-04 11:22:00 +05:30
|
|
|
# Install and run as a service
|
2020-10-24 23:57:45 +05:30
|
|
|
sudo gitlab-runner install --user=gitlab-runner --working-directory=/home/gitlab-runner
|
|
|
|
sudo gitlab-runner start
|