Files
threshold/enos/modules/build_local/main.tf
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

25 lines
435 B
Terraform
Raw Normal View History

terraform {
required_providers {
enos = {
source = "hashicorp.com/qti/enos"
}
}
}
variable "path" {
default = "/tmp"
}
resource "enos_local_exec" "build" {
environment = {
"GOOS" = "linux",
"GOARCH" = "amd64",
"CGO_ENABLED" = 0,
"ARTIFACT_PATH" = var.path
}
scripts = ["${path.module}/templates/build.sh"]
}
output "artifact_path" {
value = "${var.path}/boundary.zip"
}