Running Gitlab on Local with Gitlab Runner
Install GitLab runner with homebrew
https://docs.gitlab.com/runner/install/osx.html#homebrew-installation-alternative
To install GitLab Runner using Homebrew:
- Install GitLab Runner.
brew install gitlab-runner
- Install GitLab Runner as a service and start it.
brew services start gitlab-runner
GitLab Runner is installed and running.
Add a credential to /Users/muhyusuf/.docker/config.json
untuk bisa akses private registry
{
“auths”: {
“registry.gitlab.com”: {
“username”: “iambbb”,
“password” : “password”
}
},
“credsStore”: “desktop”,
“experimental”: “disabled”,
“stackOrchestrator”: “swarm”,
“currentContext”: “default”
}
running gitlab runner dengan stage pilihan
sudo GitLab-runner exec docker unit_test