Last active
October 7, 2019 17:09
-
-
Save egeneralov/6cd8b3154866d8436afc1e906f8a7b0a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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