Created
May 10, 2019 09:16
-
-
Save Pierozi/be54c8226634a84de54b9c579aadcf81 to your computer and use it in GitHub Desktop.
Gitlab Runner Register
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 | |
service=$1 | |
token=$2 | |
name=$3 | |
docker-compose run --rm $service register -n \ | |
--url https://gitlab.com/ \ | |
--registration-token $token \ | |
--executor docker \ | |
--description "$name" \ | |
--docker-image "docker:stable" \ | |
--docker-volumes /var/run/docker.sock:/var/run/docker.sock |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment