Skip to content

Instantly share code, notes, and snippets.

@Pierozi
Created May 10, 2019 09:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Pierozi/be54c8226634a84de54b9c579aadcf81 to your computer and use it in GitHub Desktop.
Save Pierozi/be54c8226634a84de54b9c579aadcf81 to your computer and use it in GitHub Desktop.
Gitlab Runner Register
#!/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