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:

  1. Install GitLab Runner.
    brew install gitlab-runner
  2. 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













Leave a Reply

Your email address will not be published. Required fields are marked *