Browse Source

Added secrets template back in

pull/1259/head
Tim McCarthy 5 years ago
parent
commit
5a1643b5ae
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      deploy/aro/infrastructure/azure-pipelines.yml

+ 5
- 2
deploy/aro/infrastructure/azure-pipelines.yml View File

@ -17,8 +17,8 @@ stages:
SourceImageRegistryProjectName: development SourceImageRegistryProjectName: development
SqlHostName: mssql-server-linux.$(OpenShiftProject).svc SqlHostName: mssql-server-linux.$(OpenShiftProject).svc
jobs: jobs:
- job: Infrastructure_Containers_Deployment
displayName: 'Infrastructure Containers Deployment'
- job: Infrastructure_Deployment
displayName: 'Infrastructure Deployment'
variables: variables:
CatalogDbConnection: Server=$(SqlHostName);Database=Microsoft.eShopOnContainers.Services.CatalogDb;User Id=$(SqlUsername);Password=$(SqlPassword) CatalogDbConnection: Server=$(SqlHostName);Database=Microsoft.eShopOnContainers.Services.CatalogDb;User Id=$(SqlUsername);Password=$(SqlPassword)
IdentityDbConnection: Server=$(SqlHostName);Database=Microsoft.eShopOnContainers.Service.IdentityDb;User Id=$(SqlUsername);Password=$(SqlPassword) IdentityDbConnection: Server=$(SqlHostName);Database=Microsoft.eShopOnContainers.Service.IdentityDb;User Id=$(SqlUsername);Password=$(SqlPassword)
@ -40,6 +40,9 @@ stages:
- script: 'oc project $(OpenShiftProject)' - script: 'oc project $(OpenShiftProject)'
failOnStderr: true failOnStderr: true
displayName: 'Set OpenShift Project Context' displayName: 'Set OpenShift Project Context'
- script: 'oc process -f ./deploy/aro/openshift-templates/infrastructure/secrets-deploy-template.yml -p CATALOG_DB_CONNECTION_SECRET=$(CatalogDbConnection) -p IDENTITY_DB_CONNECTION_SECRET=$(IdentityDbConnection) -p MARKETING_DB_CONNECTION_SECRET=$(MarketingDbConnection) -p ORDERING_DB_CONNECTION_SECRET=$(OrderingDbConnection) -p SQL_PASSWORD_SECRET=$(SqlPassword) -p WEBHOOKS_DB_CONNECTION_SECRET=$(WebhooksDbConnection) | oc apply -f-'
failOnStderr: true
displayName: 'Secrets Deployment'
- script: 'oc process -f ./deploy/aro/openshift-templates/infrastructure/rabbitmq-image-deploy-template.yml -p IMAGE_REGISTRY_PROJECT_NAME=$(SourceImageRegistryProjectName) | oc apply -f-' - script: 'oc process -f ./deploy/aro/openshift-templates/infrastructure/rabbitmq-image-deploy-template.yml -p IMAGE_REGISTRY_PROJECT_NAME=$(SourceImageRegistryProjectName) | oc apply -f-'
failOnStderr: true failOnStderr: true
displayName: 'RabbitMQ Deployment' displayName: 'RabbitMQ Deployment'

Loading…
Cancel
Save