chore(e2e): Add source override to admin ui build script

* override build source for automation. Allowing enterprise builds from boundary-ui source
This commit is contained in:
dillanb-hashi authored and GitHub committed 2025-10-17 07:44:12 -07:00
1 parent 725093f8d8
commit f7a52473b0
7 files changed
+48 -18

No files matched your search

@@ -15,6 +15,7 @@ export DEV_DOCKER_GOARCH=$(uname -m)
if [[ $DEV_DOCKER_GOARCH == "x86_64" ]]; then
export DEV_DOCKER_GOARCH="amd64"
fi
export UI_SRC_OVERRIDE="${UI_BUILD_OVERRIDE}"
export IMAGE_TAG_DEV="${IMAGE_NAME}"
make build-ui docker-build-dev
@@ -24,6 +24,11 @@ variable "edition" {
default = "oss"
}
variable "ui_build_override" {
description = "Override for build for UI automation (oss or ent)"
default = null
}
resource "enos_local_exec" "get_git_sha" {
inline = ["git rev-parse --short HEAD"]
}
@@ -34,9 +39,10 @@ locals {
resource "enos_local_exec" "build_docker_image" {
environment = {
"IMAGE_NAME" = local.image_name
"ARTIFACT_PATH" = var.cli_build_path
"EDITION" = var.edition
"IMAGE_NAME" = local.image_name
"ARTIFACT_PATH" = var.cli_build_path
"EDITION" = var.edition
"UI_BUILD_OVERRIDE" = var.ui_build_override
}
scripts = ["${path.module}/build.sh"]
}
+14 -8
View File
@@ -33,16 +33,22 @@ variable "goos" {
default = "linux"
}
variable "ui_build_override" {
description = "Override for build for UI automation (oss or ent)"
default = null
}
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
"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"]
}
@@ -13,6 +13,7 @@ npm install --global pnpm || true
root_dir="$(git rev-parse --show-toplevel)"
pushd "${root_dir}" > /dev/null
export UI_SRC_OVERRIDE="${UI_BUILD_OVERRIDE}"
make ${BUILD_TARGET}
zip -j ${ARTIFACT_PATH}/${ARTIFACT_NAME}.zip bin/${BINARY_NAME}