tonny-zhang / tonny-zhang.github.com

4 stars 1 forks source link

gitlab 安装及配置相关 #72

Open tonny-zhang opened 6 years ago

tonny-zhang commented 6 years ago

gitlab runner 配置

gitlab-runner register 返回 401 unauthorized

  1. curl -L https://packages.gitlab.com/install/repositories/runner/gitlab-ci-multi-runner/script.deb.sh|bash
  2. apt-get install gitlab-ci-multi-runner=1.11.1 安装指定版本

gitlab 端口为非80端口 运行任务时返回 xxxx@192.168.3.99/xxx.git not found

  1. vi /etc/gitlab/gitlab.rb 修改 external_url 'http://192.168.3.99:81' 将URL里加入端口
  2. gitlab-ctl reconfigure
  3. gitlab-ctl restart