diff --git a/README.md b/README.md index fea963a..17889b9 100755 --- a/README.md +++ b/README.md @@ -47,6 +47,7 @@ other optional variables (e.g., `name`, `tags`, etc.) provided by the | `github_organization` | Name of the GitHub organization. | `string` | n/a | yes | | `github_app_webhook_password` | Password for the GitHub app webhook. An empty string implies a randomly generated password. | `string` | `""` | no | | `github_organization_runner_enabled` | Toggle to activate runners for all projects in the organization. | `bool` | `true` | no | +| `runner_binaries_path` | Path to the GitHub Action runner binaries saved locally before pushed to S3. | `string` | `""` | no | | `runner_ephemeral_mode_enabled` | Toggle to activate ephemeral runners. | `bool` | `false` | no | | `runner_version` | Version of the GitHub Action runner. | `string` | n/a | yes | | `runner_os` | Operating system for the GitHub Action runner. | `string` | `"linux"` | no | diff --git a/main.tf b/main.tf index adde7c5..fd37223 100755 --- a/main.tf +++ b/main.tf @@ -130,7 +130,7 @@ module "runner_binaries" { version = "1.3.2" artifact_src_type = "directory" - artifact_dst_directory = "${path.module}/dist" + artifact_dst_directory = coalesce(var.runner_binaries_path, "${path.module}/dist") artifact_src_path = "/tmp/runner-binaries" docker_build_context = "${path.module}/assets/runner-binaries" docker_build_target = "package" diff --git a/variables.tf b/variables.tf index f480192..feb25ed 100755 --- a/variables.tf +++ b/variables.tf @@ -36,6 +36,12 @@ variable "runner_version" { description = "Version of the GitHub Action runner." } +variable "runner_binaries_path" { + type = string + description = "Path to the GitHub Action runner binaries saved locally before pushed to S3." + default = "" +} + variable "runner_os" { type = string description = "Operating system for the GitHub Action runner."