Added route to Identity pipeline
This commit is contained in:
parent
fe096ee681
commit
c2077c2598
@ -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 identity-public-route'
|
||||||
|
inputs:
|
||||||
|
sourcePath: ./deploy/aro/identity-api
|
||||||
|
filePattern: identity-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/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-'
|
- 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
|
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'
|
26
deploy/aro/identity-api/identity-public-route.json
Normal file
26
deploy/aro/identity-api/identity-public-route.json
Normal 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__"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
26
deploy/aro/web-mvc/webmvc-public-route.json
Normal file
26
deploy/aro/web-mvc/webmvc-public-route.json
Normal 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__"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user