From 08fde81e3f79ab2c8d33c396d88c8aab555b41db Mon Sep 17 00:00:00 2001 From: Tim McCarthy Date: Thu, 27 Feb 2020 10:24:05 -0800 Subject: [PATCH] Added public route to webmvc --- deploy/aro/web-mvc/azure-pipelines.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/deploy/aro/web-mvc/azure-pipelines.yml b/deploy/aro/web-mvc/azure-pipelines.yml index a2547a85a..1de4c4401 100644 --- a/deploy/aro/web-mvc/azure-pipelines.yml +++ b/deploy/aro/web-mvc/azure-pipelines.yml @@ -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' \ No newline at end of file + 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' \ No newline at end of file