Skip to content

Instantly share code, notes, and snippets.

@rtplv
Last active August 21, 2020 13:58
Show Gist options
  • Save rtplv/5145997f5acaf4b1df11148f2e35844f to your computer and use it in GitHub Desktop.
Save rtplv/5145997f5acaf4b1df11148f2e35844f to your computer and use it in GitHub Desktop.
  1. Устанавливаем gitlab-runner: https://docs.gitlab.com/runner/install/linux-manually.html

  2. Регистрируем runner: https://docs.gitlab.com/runner/register/

  3. Добавляем ssh ключ в deploy keys (для доступа к репозиториям): https://docs.gitlab.com/ee/ci/ssh_keys/

  4. Добавляем своего пользователя и пользоватея gitlab-runner в группу, которая будет иметь доступ к /var/www:

sudo groupadd groupname

sudo gpasswd -a username groupname
sudo gpasswd -a gitlab-runner groupname

sudo chown -R root:groupname /var/www
  1. Клонируем репозиторий от gitlab-runner юзера.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment