Skip to content

Commit 9a41525

Browse files
authored
feat: add clone_url to config.toml (#516)
* add `clone_url` to `config.toml` * fix parameter name
1 parent 05055c0 commit 9a41525

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ locals {
7575
{
7676
aws_region = var.aws_region
7777
gitlab_url = var.runners_gitlab_url
78+
gitlab_clone_url = var.runners_clone_url
7879
runners_vpc_id = var.vpc_id
7980
runners_subnet_id = length(var.subnet_id) > 0 ? var.subnet_id : var.subnet_id_runners
8081
runners_aws_zone = data.aws_availability_zone.runners.name_suffix

template/runner-config.tpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ listen_address = "${prometheus_listen_address}"
77
[[runners]]
88
name = "${runners_name}"
99
url = "${gitlab_url}"
10+
clone_url = "${gitlab_clone_url}"
1011
token = "${runners_token}"
1112
executor = "${runners_executor}"
1213
environment = ${runners_environment_vars}

variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,12 @@ variable "runners_gitlab_url" {
163163
type = string
164164
}
165165

166+
variable "runners_clone_url" {
167+
description = "Overwrites the URL for the GitLab instance. Use only if the runner can’t connect to the GitLab URL."
168+
type = string
169+
default = ""
170+
}
171+
166172
variable "runners_token" {
167173
description = "Token for the runner, will be used in the runner config.toml."
168174
type = string

0 commit comments

Comments
 (0)