Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
OpenWrt staging builds on GitLab with autoscaling VPSes on Hetzner Cloud
version: '2'
services:
hetzner-runner:
image: mawalu/hetzner-gitlab-runner:latest
volumes:
- "./hetzner_config:/etc/gitlab-runner"
concurrent = 50
check_interval = 0
[session_server]
session_timeout = 1800
[[runners]]
name = "hetzner autoscale"
url = "https://gitlab.com"
token = "private"
executor = "docker+machine"
limit = 5
[runners.custom_build_dir]
[runners.cache]
Type = "s3"
Shared = true
[runners.cache.s3]
ServerAddress = "foo.true.cz"
AccessKey = "private"
SecretKey = "secret"
BucketName = "openwrt-hetzner-gitlab-runners-cache"
[runners.cache.gcs]
[runners.cache.azure]
[runners.docker]
tls_verify = false
image = "debian:10"
privileged = true
disable_entrypoint_overwrite = false
oom_kill_disable = false
disable_cache = false
volumes = ["/cache", "/var/run/docker.sock:/var/run/docker.sock"]
shm_size = 0
[runners.machine]
IdleCount = 0
IdleTime = 0
MachineDriver = "hetzner"
MachineName = "runner-%s"
MachineOptions = ["hetzner-api-token=private", "hetzner-image=debian-9", "hetzner-server-type=cpx41"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment