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.4 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/web-spa/*
  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: WebSpaDeployment
  21. displayName: 'Web SPA 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/webspa-deploy-template.yml -p IMAGE_REGISTRY_PROJECT_NAME=$(SourceImageRegistryProjectName) -p IDENTITY_API_URL=$(IdentityApiUrl) -p WEB_SHOPPING_API_GATEWAY_URL=$(WebShoppingApiGatewayUrl) -p MARKETING_API_URL=$(MarketingApiUrl) -p IDENTITY_API_HC_URL=$(IdentityApiHc) -p ORDERING_SIGNALR_HUB_URL=$(OrderingSignalRHubUrl) | oc apply -f-'
  35. failOnStderr: true
  36. displayName: 'Ensure Web SPA OpenShift DeploymentConfig and Service'