Skip to content

Instantly share code, notes, and snippets.

@sagitarius29
Created March 6, 2021 15:35
Show Gist options
  • Save sagitarius29/e4ef5b024e659a3ff0909df0abeb345b to your computer and use it in GitHub Desktop.
Save sagitarius29/e4ef5b024e659a3ff0909df0abeb345b to your computer and use it in GitHub Desktop.
Register Runner for Gitlab command line code
sudo gitlab-runner register \
--non-interactive \
--url "https://gitlab.com/" \
--registration-token "HERE-TOKEN" \
--executor "docker" \
--docker-image alpine:latest \
--description "gitlab-runner" \
--tag-list "docker,aws" \
--run-untagged="true" \
--locked="false" \
--access-level="not_protected"
--docker-volumes "/var/run/docker.sock:/var/run/docker.sock" \
--docker-volumes "/certs/client" \
--docker-volumes "/cache"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment