feat: Added the ability to spin-up an abritrary number of runners at runtime
This commit is contained in:
@@ -88,4 +88,19 @@ resource "hcloud_volume" "storage" {
|
||||
server_id = hcloud_server.this.id
|
||||
automount = true
|
||||
format = "ext4"
|
||||
|
||||
lifecycle {
|
||||
prevent_destroy = true
|
||||
}
|
||||
}
|
||||
|
||||
# Renders services/dev/Runners/docker-compose.yml directly into the repo, with
|
||||
# one runner service per var.runner_count. This only touches the local working
|
||||
# tree - deploying the change still goes through the normal scp + spinup.sh flow.
|
||||
resource "local_file" "runners_compose" {
|
||||
filename = "${path.root}/../services/dev/Runners/docker-compose.yml"
|
||||
content = templatefile("${path.module}/templates/runners-docker-compose.yml.tftpl", {
|
||||
runner_count = var.runner_count
|
||||
})
|
||||
file_permission = "0644"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user