Browse Source

Added replace tokens task and oc apply for catalog-public-route.yml

pull/1259/head
Tim McCarthy 5 years ago
parent
commit
0e255e5d47
1 changed files with 9 additions and 1 deletions
  1. +9
    -1
      deploy/aro/catalog-api/azure-pipelines.yml

+ 9
- 1
deploy/aro/catalog-api/azure-pipelines.yml View File

@ -29,6 +29,11 @@ stages:
inputs: inputs:
azureSubscription: 'Azure OpenShift Demo' azureSubscription: 'Azure OpenShift Demo'
KeyVaultName: 'openshift-demo-vault' 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 - task: redhat.openshift-vsts.oc-setup-task.oc-setup@2
displayName: 'Setup Openshift CLI' displayName: 'Setup Openshift CLI'
inputs: inputs:
@ -43,4 +48,7 @@ stages:
-p CATALOG_PUBLIC_HOSTNAME=$(CatalogPublicHostName) -p CATALOG_PUBLIC_HOSTNAME=$(CatalogPublicHostName)
| oc apply -f-' | oc apply -f-'
failOnStderr: true failOnStderr: true
displayName: 'Ensure Catalog API OpenShift DeploymentConfig and Service'
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'

Loading…
Cancel
Save