Skip to content

Instantly share code, notes, and snippets.

@Prajithp
Created May 15, 2021 15:15
Show Gist options
  • Save Prajithp/3bf88aabae546b49f013c4a4fdca7dc4 to your computer and use it in GitHub Desktop.
Save Prajithp/3bf88aabae546b49f013c4a4fdca7dc4 to your computer and use it in GitHub Desktop.
gitlab-runner
concurrent = 3
check_interval = 0
[session_server]
session_timeout = 1800
[[runners]]
name = "awsbastian"
limit = 10
url = "https://gitlab.zzzz/"
token = "xx"
executor = "docker+machine"
[runners.docker]
tls_verify = false
image = "alpine:3"
disable_cache = false
volumes = ["/cache"]
shm_size = 0
privileged = true
[runners.cache]
Type = "s3"
Shared = true
ServerAddress = "s3.amazonaws.com"
BucketName = "zzzz"
BucketLocation = "ap-south-1"
[runners.machine]
IdleCount = 1
IdleTime = 180
MaxBuilds = 5
MachineDriver = "amazonec2"
MachineName = "gitlab-docker-machine-%s"
MachineOptions = ["amazonec2-region=ap-south-1", "amazonec2-vpc-id=vpc-dab983b3", "amazonec2-subnet-id=subnet-30020f59", "amazonec2-private-address-only=true", "amazonec2-use-private-address=true", "amazonec2-tags=runner-manager-name,gitlab-aws-autoscaler,gitlab,true,gitlab-runner-autoscale,true", "amazonec2-security-group=private-sg-ec2-allow-all-int-traffic", "amazonec2-instance-type=m5.large", "amazonec2-request-spot-instance=true", "amazonec2-spot-price="]
OffPeakTimezone = ""
OffPeakIdleCount = 0
OffPeakIdleTime = 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment