Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prod pipeline fix #983

Merged
merged 3 commits into from
Dec 18, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions .azuredevops/build-and-push-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand All @@ -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)

Expand Down