gitlab-runner安装与使用
安装
# Linux x86-64 sudo wget -O /usr/local/bin/gitlab-runner https://gitlab-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-runner-linux-amd64 # Linux x86 sudo wget -O /usr/local/bin/gitlab-runner https://gitlab-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-runner-linux-386 # Linux arm sudo wget -O /usr/local/bin/gitlab-runner https://gitlab-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-runner-linux-arm
下载完之后,需要给gitlab-runner执行权限
sudo chmod +x /usr/local/bin/gitlab-runner
安装gitlab-runner
sudo gitlab-runner install --user=用户名 --working-directory=/home/用户名
启动gitlab-runner
sudo gitlab-runner start