Skip to content

Instantly share code, notes, and snippets.

@anushshukla
Created September 29, 2020 20:41
Show Gist options
  • Select an option

  • Save anushshukla/4dbf24083a96bb97314dec9a4f306502 to your computer and use it in GitHub Desktop.

Select an option

Save anushshukla/4dbf24083a96bb97314dec9a4f306502 to your computer and use it in GitHub Desktop.
Gitlab Runner Setup on Server (Ref https://docs.gitlab.com/runner/register/#gnulinux)
sudo gitlab-runner register \
--non-interactive \
--url "https://gitlab.com/your-user-name" \
--registration-token "PROJECT_REGISTRATION_TOKEN" \
--executor "ssh" \
--docker-image alpine:latest \
--description "ssh-runner-local-server" \
--tag-list "ci,cd,lint-check,test,coverage" \
--run-untagged="true" \
--locked="false" \
--access-level="not_protected" \
&& sudo gitlab-runner restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment