Skip to content

Instantly share code, notes, and snippets.

@Voronenko
Last active August 14, 2018 10:29
Show Gist options
  • Save Voronenko/48b35ea97fdd057ab482be03e4cd8c49 to your computer and use it in GitHub Desktop.
Save Voronenko/48b35ea97fdd057ab482be03e4cd8c49 to your computer and use it in GitHub Desktop.
install_gitlab_runner.sh
sudo wget -O /usr/local/bin/gitlab-runner https://gitlab-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-runner-linux-amd64
sudo chmod +x /usr/local/bin/gitlab-runner
sudo useradd --comment 'GitLab Runner' --create-home gitlab-runner --shell /bin/bash
sudo gitlab-runner install --user=gitlab-runner --working-directory=/home/gitlab-runner
sudo gitlab-runner start
# gitlab-ci-multi-runner exec docker {test_name}
#Run the build: gitlab-runner exec docker my-job.
#This will run my-job defined in the local .gitlab-ci.yml in a docker container.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment