Added public route to webmvc

This commit is contained in:
Tim McCarthy 2020-02-27 10:24:05 -08:00
parent c2077c2598
commit 08fde81e3f

View File

@ -24,6 +24,16 @@ stages:
pool:
vmImage: 'windows-latest'
steps:
- task: AzureKeyVault@1
displayName: 'Azure Key Vault: openshift-demo-vault'
inputs:
azureSubscription: 'Azure OpenShift Demo'
KeyVaultName: 'openshift-demo-vault'
- task: colinsalmcorner.colinsalmcorner-buildtasks.replace-tokens-task.ReplaceTokens@1
displayName: 'Replace tokens in webmvc-public-route'
inputs:
sourcePath: ./deploy/aro/web-mvc
filePattern: webmvc-public-route.json
- task: redhat.openshift-vsts.oc-setup-task.oc-setup@2
displayName: 'Setup Openshift CLI'
inputs:
@ -33,4 +43,7 @@ stages:
displayName: 'Set OpenShift Project Context'
- script: 'oc process -f ./deploy/aro/openshift-templates/webmvc-deploy-template.yml -p IMAGE_REGISTRY_PROJECT_NAME=$(SourceImageRegistryProjectName) -p IDENTITY_API_URL=$(IdentityApiUrl) -p WEB_SHOPPING_API_GATEWAY_URL=$(WebShoppingApiGatewayUrl) -p MARKETING_API_URL=$(MarketingApiUrl) -p IDENTITY_API_HC_URL=$(IdentityApiHc) -p ORDERING_SIGNALR_HUB_URL=$(OrderingSignalRHubUrl) | oc apply -f-'
failOnStderr: true
displayName: 'Ensure Web SPA OpenShift DeploymentConfig and Service'
displayName: 'Ensure Web MVC OpenShift DeploymentConfig and Service'
- script: 'oc apply -f ./deploy/aro/web-mvc/webmvc-public-route.json'
failOnStderr: true
displayName: 'Ensure Web MVC API Route'