Run a gitlab runner instance on a mac. This repo has all you need to create and register a single instance gitlab runner on a mac.
Following this tutorial rather than this page because the former mentioned that gitlab does not administer the homebrew recipe, which is used in the later.
- Create a runner with a shared runner auth token: link
Download (you may have to create the /usr/local/bin
directory, and add it to your PATH
variable):
- Intel macs:
sudo curl --output /usr/local/bin/gitlab-runner "https://gitlab-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-runner-darwin-amd64"
- Apple Silicon macs (M1, etc):
sudo curl --output /usr/local/bin/gitlab-runner "https://gitlab-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-runner-darwin-arm64"
Give permissions to execute:
sudo chmod +x /usr/local/bin/gitlab-runner
Registering will create config.toml
. This seems to be created in ~/.gitlab-runner/config.toml
.
Open a terminal as the user that will be running the runner, install GitLab runner as a service and start it:
gitlab-runner install
gitlab-runner start
Reboot your system