GitLab

— 2 minute read

GitLab Runner permalink

  • GitLab Runner: https://docs.gitlab.com/runner/

  • Digital Ocean Install Instructions: https://about.gitlab.com/2016/04/19/how-to-set-up-gitlab-runner-on-digitalocean/

  • Official GitLab Install Instructions: https://docs.gitlab.com/runner/install/

  • Official GitLab Install Instructions (Linux): https://docs.gitlab.com/runner/install/linux-repository.html

  • View Runners: GITLAB_INSTALL/admin/runners

  • Install & Register Shared Runner:

    • Install GitLab Runner: sudo apt-get install gitlab-ci-multi-runner
    • Verify Install: gitlab-runner --version
    • Grab URL & token from "How to setup a shared Runner for a new project" section: GITLAB_INSTALL/admin/runners
    • Register GitLab Runner gitlab-runner register
      • gitlab-ci coordinator URL: Enter URL acquired in previous step.
      • gitlab-ci token for this runner: Enter token acquired in previous step.
      • gitlab-ci description for this runner: Enter a description or the hostname of the droplet will be used.
      • gitlab-ci tags for this runner: You can use tags in your .gitlab-ci.yml to limit jobs to specific Runners. Useful if for example you are running tests on different OSes. (Ok to leave blank)
      • executor: docker
      • default Docker image: The default Docker image that will be used if you don't specify it in .gitlab-ci.yml. Entered node:latest.
    • Verify Registration: gitlab-runner list

Update Runner permalink

# For Debian/Ubuntu
sudo apt-get update
sudo apt-get install gitlab-ci-multi-runner

# For RHEL/CentOS
sudo yum update
sudo yum install gitlab-ci-multi-runner