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.

34 lines
1.8 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/mobileshoppingagg/*
  11. stages:
  12. - stage: development
  13. displayName: Development
  14. variables:
  15. OpenShiftProject: development
  16. SourceImageRegistryProjectName: development
  17. EnvironmentName: -dev.msftnbu.com
  18. jobs:
  19. - job: MobileShoppingAggregatorDeployment
  20. displayName: 'Mobile Shopping Aggregator Deployment'
  21. variables:
  22. - template: ../azure-devops-templates/variables.yml
  23. pool:
  24. vmImage: 'windows-latest'
  25. steps:
  26. - task: redhat.openshift-vsts.oc-setup-task.oc-setup@2
  27. displayName: 'Setup Openshift CLI'
  28. inputs:
  29. openshiftService: $(OpenShiftServiceConnection)
  30. - script: 'oc project $(OpenShiftProject)'
  31. failOnStderr: true
  32. displayName: 'Set OpenShift Project Context'
  33. - script: 'oc process -f ./deploy/aro/mobileshoppingagg/mobileshoppingagg-deploy-template.yml -p IMAGE_REGISTRY_PROJECT_NAME=$(SourceImageRegistryProjectName) -p BASKET_API_URL=$(BasketApiUrl) -p CATALOG_API_URL=$(CatalogApiUrl) -p ORDERING_API_URL=$(OrderingApiUrl) -p IDENTITY_API_URL=$(IdentityApiUrl) -p BASKET_API_GRPC_URL=$(BasketApiGrpcUrl) -p CATALOG_API_GRPC_URL=$(CatalogApiGrpcUrl) -p ORDERING_API_GRPC_URL=$(OrderingApiGrpcUrl) -p CATALOG_API_HC_URL=$(CatalogApiHc) -p ORDERING_API_HC_URL=$(OrderingApiHc) -p IDENTITY_API_HC_URL=$(IdentityApiHc) -p BASKET_API_HC_URL=$(BasketApiHc) -p MARKETING_API_HC_URL=$(MarketingApiHc) -p PAYMENT_API_HC_URL=$(PaymentApiHc) -p LOCATION_API_HC_URL=$(LocationsApiHc) -p IDENTITY_URL_EXTERNAL=$(IdentityUrlExternal) | oc apply -f-'
  34. failOnStderr: true
  35. displayName: 'Ensure Mobile Shopping Aggregator OpenShift DeploymentConfig and Service'