From 8356a2b0ecdcac2228b3b22a8a75df6bb7bf6620 Mon Sep 17 00:00:00 2001 From: roshni73 Date: Fri, 29 Nov 2024 14:42:47 +0545 Subject: [PATCH] feat: use hcaptcha environment variable during build --- Dockerfile | 1 + nginx-serve/apply-config.sh | 2 ++ nginx-serve/helm/templates/configmap.yaml | 1 + nginx-serve/helm/templates/deployment.yaml | 4 ++-- nginx-serve/helm/values-test.yaml | 1 + nginx-serve/helm/values.yaml | 1 + 6 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 96a0232b..6a0bc2a8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -33,6 +33,7 @@ ENV APP_ENVIRONMENT=APP_ENVIRONMENT_PLACEHOLDER ENV APP_MAPBOX_ACCESS_TOKEN=APP_MAPBOX_ACCESS_TOKEN_PLACEHOLDER ENV APP_GOOGLE_ANALYTICS_ID=APP_GOOGLE_ANALYTICS_ID_PLACEHOLDER ENV APP_GRAPHQL_API_ENDPOINT=https://APP-GRAPHQL-API-ENDPOINT-PLACEHOLDER.COM/ +ENV APP_HCAPTCHA_SITEKEY=APP_HCAPTCHA_SITEKEY_PLACEHOLDER # Build variables (Requires backend pulled) ENV APP_GRAPHQL_CODEGEN_ENDPOINT=./backend/schema.graphql diff --git a/nginx-serve/apply-config.sh b/nginx-serve/apply-config.sh index c81214e1..11eec813 100755 --- a/nginx-serve/apply-config.sh +++ b/nginx-serve/apply-config.sh @@ -30,6 +30,8 @@ find "$DESTINATION_DIRECTORY" -type f -exec sed -i "s|\|$APP_MAPBOX_ACCESS_TOKEN|g" {} + find "$DESTINATION_DIRECTORY" -type f -exec sed -i "s|\|$APP_GOOGLE_ANALYTICS_ID|g" {} + find "$DESTINATION_DIRECTORY" -type f -exec sed -i "s|\