Skip to content

Commit 54b2a2d

Browse files
committed
feat: add path to save binaries locally
1 parent bd30ff5 commit 54b2a2d

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ other optional variables (e.g., `name`, `tags`, etc.) provided by the
4747
| `github_organization` | Name of the GitHub organization. | `string` | n/a | yes |
4848
| `github_app_webhook_password` | Password for the GitHub app webhook. An empty string implies a randomly generated password. | `string` | `""` | no |
4949
| `github_organization_runner_enabled` | Toggle to activate runners for all projects in the organization. | `bool` | `true` | no |
50+
| `runner_binaries_path` | Path to the GitHub Action runner binaries saved locally before pushed to S3. | `string` | `""` | no |
5051
| `runner_ephemeral_mode_enabled` | Toggle to activate ephemeral runners. | `bool` | `false` | no |
5152
| `runner_version` | Version of the GitHub Action runner. | `string` | n/a | yes |
5253
| `runner_os` | Operating system for the GitHub Action runner. | `string` | `"linux"` | no |

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ module "runner_binaries" {
130130
version = "1.3.2"
131131

132132
artifact_src_type = "directory"
133-
artifact_dst_directory = "${path.module}/dist"
133+
artifact_dst_directory = coalesce(var.runner_binaries_path, "${path.module}/dist")
134134
artifact_src_path = "/tmp/runner-binaries"
135135
docker_build_context = "${path.module}/assets/runner-binaries"
136136
docker_build_target = "package"

variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@ variable "runner_version" {
3636
description = "Version of the GitHub Action runner."
3737
}
3838

39+
variable "runner_binaries_path" {
40+
type = string
41+
description = "Path to the GitHub Action runner binaries saved locally before pushed to S3."
42+
default = ""
43+
}
44+
3945
variable "runner_os" {
4046
type = string
4147
description = "Operating system for the GitHub Action runner."

0 commit comments

Comments
 (0)