Skip to content

Commit 1ac1b4e

Browse files
committed
don't chain preloader
1 parent bc4fa80 commit 1ac1b4e

File tree

3 files changed

+5
-29
lines changed

3 files changed

+5
-29
lines changed

deployment/live/gcp/static-ct-staging/cloudbuild/preloader/terragrunt.hcl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,14 @@ terraform {
33
}
44

55
locals {
6-
env = "staging"
7-
docker_env = "staging"
6+
env = get_env("GOOGLE_ENV", "staging")
7+
docker_env = get_env("GOOGLE_ENV", "staging")
88
project_id = get_env("GOOGLE_PROJECT", "static-ct-staging")
99
location = get_env("GOOGLE_REGION", "us-central1")
1010
github_owner = get_env("GITHUB_OWNER", "transparency-dev")
11+
source_log_uri = get_env("SOURCE_LOG_URI", "https://ct.googleapis.com/logs/us1/argon2025h1")
12+
submission_url = get_env("SUBMISSION_URL", "https://arche2025h1-64t3hlisgq-uc.a.run.app/arche2025h1.ct.transparency.dev")
13+
monitoring_url = get_env("MONITORING_URL", " https://storage.googleapis.com/static-ct-staging-arche2025h1-bucket")
1114
}
1215

1316
inputs = local

deployment/modules/gcp/cloudbuild/tesseract/main.tf

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -127,28 +127,6 @@ resource "google_cloudbuild_trigger" "build_trigger" {
127127
wait_for = ["docker_push_conformance_gcp"]
128128
}
129129

130-
## Apply the deployment/live/gcp/static-staging/cloudbuild/preloader terragrunt config.
131-
## This will bring up the preloader agaist the conformance infrastructure.
132-
step {
133-
id = "terraform_apply_preloader"
134-
name = "alpine/terragrunt"
135-
script = <<EOT
136-
terragrunt --terragrunt-non-interactive --terragrunt-no-color apply -auto-approve -no-color -var="submission_url=$(cat /workspace/conformance_url)/arche2025h1.ct.transparency.dev/" -var="monitoring_url=https://storage.googleapis.com/$(cat /workspace/conformance_bucket_name)" 2>&1
137-
EOT
138-
dir = "deployment/live/gcp/static-ct-staging/cloudbuild/preloader"
139-
env = [
140-
"GOOGLE_PROJECT=${var.project_id}",
141-
"TF_IN_AUTOMATION=1",
142-
"TF_INPUT=false",
143-
"TF_VAR_project_id=${var.project_id}",
144-
"TF_VAR_location=${var.location}",
145-
"TF_VAR_env=${var.env}",
146-
"TF_VAR_github_owner=${var.github_owner}",
147-
"TF_VAR_source_log_uri=${var.source_log_uri}",
148-
]
149-
wait_for = ["terraform_apply_conformance_staging"]
150-
}
151-
152130
options {
153131
logging = "CLOUD_LOGGING_ONLY"
154132
machine_type = "E2_HIGHCPU_8"

deployment/modules/gcp/cloudbuild/tesseract/variables.tf

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,3 @@ variable "github_owner" {
2222
description = "GitHub owner used in Cloud Build trigger repository mapping"
2323
type = string
2424
}
25-
26-
variable "source_log_uri" {
27-
description = "URL of the source RFC6962 log to be preloaded."
28-
type = string
29-
}

0 commit comments

Comments
 (0)