From 3f11f61a882de0244f657a84443f5e14229dbbcd Mon Sep 17 00:00:00 2001 From: Adam Andrews <35509135+andr0272@users.noreply.github.com> Date: Mon, 18 Dec 2023 16:06:03 -0500 Subject: [PATCH] Prod pipeline fix (#983) * Fixing a typo in the prod pipeline * adding essential variables to prod pipeline * typos --- .azuredevops/build-and-push-prod.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.azuredevops/build-and-push-prod.yml b/.azuredevops/build-and-push-prod.yml index 04ac7259b..de4052c6c 100644 --- a/.azuredevops/build-and-push-prod.yml +++ b/.azuredevops/build-and-push-prod.yml @@ -9,6 +9,7 @@ variables: azureContainerRegistry.domain: 'dtsshared.azurecr.io' app.environment: production app.buildDate: $[ format('{0:yyyy}-{0:MM}-{0:dd}', pipeline.startTime) ] + app.domain: 'https://app-eligibilityestimator-prod.azurewebsites.net/' image.tag: '$(Build.SourceVersion)' stages: @@ -45,7 +46,7 @@ stages: inputs: azureSubscription: 'id-eligibilityestimator-prod' KeyVaultName: 'kv-oas-ee-prod' - SecretsFilter: 'PROD-ADOBE-ANALYTICS-URL' + SecretsFilter: 'PROD-ADOBE-ANALYTICS-URL, NEXT-AUTH-PASSWORD, NEXT-AUTH-USERCODE' RunAsPreJob: false - task: Docker@2 @@ -63,7 +64,11 @@ stages: --cache-from $(azureContainerRegistry.domain)/$(azureContainerRegistry.repository):latest --build-arg home=/app --build-arg NEXT_BUILD_DATE=$(app.buildDate) - --build-arg ADOBE_ANALYTICS_URL=$(DEV-ADOBE-ANALYTICS-URL) + --build-arg NEXTAUTH_URL=$(app.domain) + --build-arg NEXT_AUTH_USERNAME=$(NEXT-AUTH-USERCODE) + --build-arg NEXT_AUTH_PASSWORD=$(NEXT-AUTH-PASSWORD) + --build-arg NEXTAUTH_SECRET=$(NEXT_AUTH_SECRET) + --build-arg ADOBE_ANALYTICS_URL=$(PROD-ADOBE-ANALYTICS-URL) --build-arg APP_ENV=$(app.environment) --build-arg LOGGING_LEVEL=$(app.logLevel)