Added route to Identity pipeline

This commit is contained in:
Tim McCarthy 2020-02-27 09:25:25 -08:00
parent fe096ee681
commit c2077c2598
3 changed files with 66 additions and 1 deletions

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 identity-public-route'
inputs:
sourcePath: ./deploy/aro/identity-api
filePattern: identity-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/identityapi-deploy-template.yml -p IMAGE_REGISTRY_PROJECT_NAME=$(SourceImageRegistryProjectName) -p WEB_SPA_URL=$(WebSpaUrl) -p WEB_MVC_URL=$(WebMvcUrl) -p LOCATION_API_URL=$(LocationsApiUrl) -p MARKETING_API_URL=$(MarketingApiUrl) -p BASKET_API_URL=$(BasketApiUrl) -p ORDERING_API_URL=$(OrderingApiUrl) -p MOBILE_SHOPPING_AGGREGATOR_URL=$(MobileShoppingAggregatorUrl) -p WEB_SHOPPING_AGGREGATOR_URL=$(WebShoppingAggregatorUrl) -p WEBHOOKS_API_URL=$(WebhooksApiUrl) -p WEBHOOKS_WEB_CLIENT_URL=$(WebhooksWebClientUrl) | oc apply -f-'
failOnStderr: true
displayName: 'Ensure Identity API OpenShift DeploymentConfig and Service'
displayName: 'Ensure Identity API OpenShift DeploymentConfig and Service'
- script: 'oc apply -f ./deploy/aro/identity-api/identity-public-route.json'
failOnStderr: true
displayName: 'Ensure Identity API Route'

View File

@ -0,0 +1,26 @@
{
"apiVersion": "route.openshift.io/v1",
"kind": "Route",
"metadata": {
"labels": {
"app": "identityapi"
},
"name": "identity-public-route"
},
"spec": {
"host": "__IdentityPublicHostName__",
"port": {
"targetPort": "8080-tcp"
},
"to": {
"kind": "Service",
"name": "identityapi"
},
"tls": {
"termination": "edge",
"key": "__PrivateKey3__",
"certificate": "__Certificate3__",
"caCertificate": "__CaCertificate3__"
}
}
}

View File

@ -0,0 +1,26 @@
{
"apiVersion": "route.openshift.io/v1",
"kind": "Route",
"metadata": {
"labels": {
"app": "webmvc"
},
"name": "webmvc-public-route"
},
"spec": {
"host": "__PublicHostName__",
"port": {
"targetPort": "8080-tcp"
},
"to": {
"kind": "Service",
"name": "webmvc"
},
"tls": {
"termination": "edge",
"key": "__PrivateKey3__",
"certificate": "__Certificate3__",
"caCertificate": "__CaCertificate3__"
}
}
}