Skip to content

Latest commit

 

History

History
41 lines (31 loc) · 978 Bytes

File metadata and controls

41 lines (31 loc) · 978 Bytes

Gitlab Runner

Install

Offical Install Guide

Add GitLab’s official repository:

 # For Debian/Ubuntu/Mint
 curl -L https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.deb.sh | sudo bash

 # For RHEL/CentOS/Fedora
 curl -L https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.rpm.sh | sudo bash

Install the latest version of GitLab Runne

 # For Debian/Ubuntu/Mint
 sudo apt-get install gitlab-runner

 # For RHEL/CentOS/Fedora
 sudo yum install gitlab-runner

Add gitlab-runner user docker privilege

sudo usermod -aG docker gitlab-runner

Register

sudo gitlab-runner register -n \
  --url https://gitlab.exmaple.com \
  --tag-list "ec2-shell,be" \
  --registration-token abc1234567890dc \
  --executor shell \
  --description "backend runner"

tag-list must match tags in .gitlab-ci.yml