Skip to content

Commit

Permalink
feat: add path to save binaries locally
Browse files Browse the repository at this point in the history
  • Loading branch information
sgtoj committed Sep 25, 2023
1 parent bd30ff5 commit 54b2a2d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down

0 comments on commit 54b2a2d

Please sign in to comment.