You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1.6 KiB

  1. variables:
  2. OpenShiftServiceConnection: 'OpenShift on ARO'
  3. trigger:
  4. branches:
  5. include:
  6. - master
  7. - dev
  8. paths:
  9. include:
  10. - deploy/aro/basket-api/*
  11. - deploy/aro/openshift-templates/*
  12. stages:
  13. - stage: development
  14. displayName: Development
  15. variables:
  16. OpenShiftProject: development
  17. SourceImageRegistryProjectName: development
  18. EnvironmentName: dev
  19. jobs:
  20. - job: IdentityApiDeployment
  21. displayName: 'Identity API Deployment'
  22. variables:
  23. - template: ../azure-devops-templates/variables.yml
  24. pool:
  25. vmImage: 'windows-latest'
  26. steps:
  27. - task: redhat.openshift-vsts.oc-setup-task.oc-setup@2
  28. displayName: 'Setup Openshift CLI'
  29. inputs:
  30. openshiftService: $(OpenShiftServiceConnection)
  31. - script: 'oc project $(OpenShiftProject)'
  32. failOnStderr: true
  33. displayName: 'Set OpenShift Project Context'
  34. - 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-'
  35. failOnStderr: true
  36. displayName: 'Ensure Identity API OpenShift DeploymentConfig and Service'