Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add clone_url to config.toml #516

Merged
merged 2 commits into from
Jul 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ locals {
{
aws_region = var.aws_region
gitlab_url = var.runners_gitlab_url
gitlab_clone_url = var.runners_clone_url
runners_vpc_id = var.vpc_id
runners_subnet_id = length(var.subnet_id) > 0 ? var.subnet_id : var.subnet_id_runners
runners_aws_zone = data.aws_availability_zone.runners.name_suffix
Expand Down
1 change: 1 addition & 0 deletions template/runner-config.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ listen_address = "${prometheus_listen_address}"
[[runners]]
name = "${runners_name}"
url = "${gitlab_url}"
clone_url = "${gitlab_clone_url}"
token = "${runners_token}"
executor = "${runners_executor}"
environment = ${runners_environment_vars}
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,12 @@ variable "runners_gitlab_url" {
type = string
}

variable "runners_clone_url" {
description = "Overwrites the URL for the GitLab instance. Use only if the runner can’t connect to the GitLab URL."
type = string
default = ""
}

variable "runners_token" {
description = "Token for the runner, will be used in the runner config.toml."
type = string
Expand Down