To install gitlab-runner in mac
xxxxxxxxxx
#Install GitLab Runner.
brew install gitlab-runner
#Install GitLab Runner as a service and start it.
brew services start gitlab-runner
#Link Gitlab Runner
brew link gitlab-runner
# Possible solution for Troubleshooting "launchctl" failed
DevToolsSecurity -enable
sudo security authorizationdb remove system.privilege.taskport is-developer
sudo chmod +x /usr/local/bin/gitlab-runner
gitlab-runner uninstall
gitlab-runner install
gitlab-runner start
xxxxxxxxxx
curl -L "https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.rpm.sh" | sudo bash
export GITLAB_RUNNER_DISABLE_SKEL=true; sudo -E yum install gitlab-runner
yum list gitlab-runner --showduplicates | sort -r
export GITLAB_RUNNER_DISABLE_SKEL=true; sudo -E yum install gitlab-runner-10.0.0-1
xxxxxxxxxx
# this installs the latest .deb - for debian/ubuntu based distros
# For instructions on .rpm packages and more go to https://docs.gitlab.com/runner/install/linux-manually.html
# download deb -> remember to change ${arch} e.g., amd64
curl -LJO "https://gitlab-runner-downloads.s3.amazonaws.com/latest/deb/gitlab-runner_${arch}.deb"
#install
sudo dpkg -i <file downloaded>
# register the runner
# the runner configuration asked here is found in your gitlab project -> settings -> CI/CD -> Runners
sudo gitlab-runner register
# if your pipeline makes use of docker build you must add the runner to the docker group
# more on: https://docs.gitlab.com/ee/ci/docker/using_docker_build.html
sudo usermod -aG docker gitlab-runner
# verify if the runner has access to docker
sudo -u gitlab-runner -H docker info
xxxxxxxxxx
curl -L "https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.deb.sh" | sudo bash
xxxxxxxxxx
sudo gitlab-runner install --user=alen --working-directory=/home/alen
sudo gitlab-runner start