Files
threshold/enos/modules/build_local/main.tf
T
429247f407 [COMPLIANCE] Update Copyright Headers (#6282)
* [COMPLIANCE] Update Copyright and License Headers

* chore: make gen to generate files with copyright headers

* chore: update missed copyright headers

---------

Co-authored-by: hashicorp-copywrite[bot] <110428419+hashicorp-copywrite[bot]@users.noreply.github.com>
Co-authored-by: Justin Nguyen <justin.nguyen@hashicorp.com>
2026-01-28 11:05:07 -06:00

60 lines
1.1 KiB
Terraform

# Copyright IBM Corp. 2020, 2025
# SPDX-License-Identifier: BUSL-1.1
terraform {
required_providers {
enos = {
source = "registry.terraform.io/hashicorp-forge/enos"
}
}
}
variable "path" {
default = "/tmp"
}
variable "build_target" {
default = "build-ui build"
}
variable "binary_name" {
default = "boundary"
}
variable "artifact_name" {
default = "boundary"
}
variable "edition" {
default = "oss"
}
variable "goos" {
default = "linux"
}
variable "ui_build_override" {
description = "Override for build for UI automation (oss or ent)"
type = string
default = ""
}
resource "enos_local_exec" "build" {
environment = {
"GOOS" = var.goos,
"GOARCH" = "amd64",
"CGO_ENABLED" = 0,
"ARTIFACT_PATH" = var.path
"ARTIFACT_NAME" = var.artifact_name
"BINARY_NAME" = var.binary_name
"BUILD_TARGET" = var.build_target
"EDITION" = var.edition
"UI_BUILD_OVERRIDE" = var.ui_build_override
}
scripts = ["${path.module}/templates/build.sh"]
}
output "artifact_path" {
value = "${var.path}/${var.artifact_name}.zip"
}