Skip to content

Instantly share code, notes, and snippets.

@malkitsingh
Last active November 20, 2020 05:51
Show Gist options
  • Save malkitsingh/30ca90077bd010cc1f9f0c35a785a4ac to your computer and use it in GitHub Desktop.
Save malkitsingh/30ca90077bd010cc1f9f0c35a785a4ac to your computer and use it in GitHub Desktop.
How to set up GitLab Runner on DigitalOcean
## Create a droplet ##
Fortunately, DigitalOcean has a one-click image with Docker pre-installed on Ubuntu 14.04 use this link to create new droplet.
https://www.digitalocean.com/features/one-click-apps/docker/
# Install the GitLab Runner #
First, login to the new droplet via SSH and verify that Docker is installed with:
`docker info`
GitLab provides a repository where you can easily install and update GitLab Runner. The supported distros as Debian, Ubuntu and CentOS. Let's install the repository with this one-line:
`curl -L https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.deb.sh | sudo bash`
Now let's install GitLab Runner:
`sudo apt-get install gitlab-runner`
And verify it's installed:
`gitlab-runner --version`
# Register the GitLab Runner #
Now, let's get back to the droplet and start registering a Runner:
`sudo gitlab-runner register`
the gitlab-ci coordinator URL: Enter https://gitlab.com/ci
enter the executor: Our executor will be docker
Once answered all questions, you can verify that the Runner is registered with:
`sudo gitlab-runner list`
More reading.....
https://about.gitlab.com/2016/04/19/how-to-set-up-gitlab-runner-on-digitalocean/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment