Browse Source

Added public route to webmvc

pull/1259/head
Tim McCarthy 5 years ago
parent
commit
08fde81e3f
1 changed files with 14 additions and 1 deletions
  1. +14
    -1
      deploy/aro/web-mvc/azure-pipelines.yml

+ 14
- 1
deploy/aro/web-mvc/azure-pipelines.yml View File

@ -24,6 +24,16 @@ stages:
pool: pool:
vmImage: 'windows-latest' vmImage: 'windows-latest'
steps: 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 - task: redhat.openshift-vsts.oc-setup-task.oc-setup@2
displayName: 'Setup Openshift CLI' displayName: 'Setup Openshift CLI'
inputs: inputs:
@ -33,4 +43,7 @@ stages:
displayName: 'Set OpenShift Project Context' 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-' - 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 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'

Loading…
Cancel
Save