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.9 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/webshoppingagg/*
  11. - deploy/aro/openshift-templates/*
  12. stages:
  13. - stage: development
  14. displayName: Development
  15. variables:
  16. OpenShiftProject: development
  17. SourceImageRegistryProjectName: development
  18. EnvironmentName: -dev.msftnbu.com
  19. jobs:
  20. - job: WebShoppingAggregatorDeployment
  21. displayName: 'Web Shopping Aggregator 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/webshoppingagg-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=$(OrderingApiGrpcUrl) -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-'
  35. failOnStderr: true
  36. displayName: 'Ensure Web Shopping Aggregator OpenShift DeploymentConfig and Service'