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.

39 lines
1.7 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. resources:
  13. pipelines:
  14. - pipeline: BasketApiBuild
  15. source: Basket-API-Build
  16. stages:
  17. - stage: development
  18. displayName: Development
  19. variables:
  20. OpenShiftProject: development
  21. SourceImageRegistryProjectName: $(OpenShiftProject)
  22. EnvironmentName: dev
  23. jobs:
  24. - job: Configuration_Deployment
  25. displayName: 'Basket API Deployment'
  26. variables:
  27. - template: ../azure-devops-templates/variables.yml
  28. pool:
  29. vmImage: 'windows-latest'
  30. steps:
  31. - task: redhat.openshift-vsts.oc-setup-task.oc-setup@2
  32. displayName: 'Setup Openshift CLI'
  33. inputs:
  34. openshiftService: $(OpenShiftServiceConnection)
  35. - script: 'oc project $(OpenShiftProject)'
  36. failOnStderr: true
  37. displayName: 'Set OpenShift Project Context'
  38. - 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-'
  39. failOnStderr: true
  40. displayName: 'Ensure Identity API OpenShift DeploymentConfig and Service'