Skip to content

Instantly share code, notes, and snippets.

@sagitarius29
sagitarius29 / command.sh
Created March 6, 2021 15:35
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" \
@sagitarius29
sagitarius29 / config.toml
Last active March 6, 2021 15:29
Gitlab Runner configuration compatible with docker in docker. File in /etc/gitlab-runner/config.toml
concurrent = 2
check_interval = 0
[session_server]
session_timeout = 1800
[[runners]]
name = "docker-runner"
url = "https://gitlab.com/"
token = "HERETOKEN"