Skip to content

Commit 76f27b1

Browse files
committed
Add new environment variable for cygnus
1 parent fd7879f commit 76f27b1

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

modules/docker/cygnus/cygnus.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ resource "random_password" "payload_user_password" {
1515
length = 32
1616
}
1717

18+
data "gitlab_project_variable" "ga_measurement_id" {
19+
project = "code0-tech/secret-manager"
20+
key = "SCULPTOR_NEXT_PUBLIC_GA_MEASUREMENT_ID"
21+
}
22+
1823
locals {
1924
cygnus_env = [
2025
# Cygnus
@@ -23,6 +28,7 @@ locals {
2328
"PAYLOAD_USER_PASS=${random_password.payload_user_password.result}",
2429
"DATABASE_URL=postgresql://cygnus:${random_password.db.result}@${docker_container.postgres.hostname}:5432/payload",
2530
"HOSTNAME=0.0.0.0",
31+
"NEXT_PUBLIC_GA_MEASUREMENT_ID=${sensitive(data.gitlab_project_variable.ga_measurement_id.value)}",
2632

2733
# Proxy
2834
"VIRTUAL_HOST=${var.web_url}"

0 commit comments

Comments
 (0)