Skip to content

Instantly share code, notes, and snippets.

@egeneralov
Last active October 7, 2019 17:09
Show Gist options
  • Select an option

  • Save egeneralov/6cd8b3154866d8436afc1e906f8a7b0a to your computer and use it in GitHub Desktop.

Select an option

Save egeneralov/6cd8b3154866d8436afc1e906f8a7b0a to your computer and use it in GitHub Desktop.
#!/bin/bash -xe
[ -f /usr/local/bin/gitlab-runner ] || curl -L --output /usr/local/bin/gitlab-runner https://gitlab-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-runner-linux-amd64
chmod +x /usr/local/bin/gitlab-runner
gitlab-runner register -n \
--url https://gitlab.com \
--registration-token qwerty \
--executor docker \
--description "dind runner" \
--docker-image "docker:$(docker version -f '{{ .Client.Version }}')" \
--docker-privileged
systemctl restart gitlab-runner
systemctl enable gitlab-runner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment