From 0e255e5d475201041b6f745ca5ce0722d07f4c23 Mon Sep 17 00:00:00 2001 From: Tim McCarthy Date: Wed, 26 Feb 2020 22:20:22 -0800 Subject: [PATCH] Added replace tokens task and oc apply for catalog-public-route.yml --- deploy/aro/catalog-api/azure-pipelines.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/deploy/aro/catalog-api/azure-pipelines.yml b/deploy/aro/catalog-api/azure-pipelines.yml index cbb4df6cd..f87de48bd 100644 --- a/deploy/aro/catalog-api/azure-pipelines.yml +++ b/deploy/aro/catalog-api/azure-pipelines.yml @@ -29,6 +29,11 @@ stages: inputs: azureSubscription: 'Azure OpenShift Demo' KeyVaultName: 'openshift-demo-vault' + - task: colinsalmcorner.colinsalmcorner-buildtasks.replace-tokens-task.ReplaceTokens@1 + displayName: 'Replace tokens in catalog-public-route' + inputs: + sourcePath: ./deploy/aro/catalog-api + filePattern: catalog-public-route.yml - task: redhat.openshift-vsts.oc-setup-task.oc-setup@2 displayName: 'Setup Openshift CLI' inputs: @@ -43,4 +48,7 @@ stages: -p CATALOG_PUBLIC_HOSTNAME=$(CatalogPublicHostName) | oc apply -f-' failOnStderr: true - displayName: 'Ensure Catalog API OpenShift DeploymentConfig and Service' \ No newline at end of file + displayName: 'Ensure Catalog API OpenShift DeploymentConfig and Service' + - script: 'oc apply -f .deploy/aro/catalog-api/catalog-public-route.yml' + failOnStderr: true + displayName: 'Ensure Catalog API Route' \ No newline at end of file