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.3 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/ordering-api/*
  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: OrderingApiDeployment
  20. displayName: 'Ordering API 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/ordering-api/orderingapi-deploy-template.yml -p IMAGE_REGISTRY_PROJECT_NAME=$(SourceImageRegistryProjectName) -p RABBITMQ_HOSTNAME=$(RabbitMqHostname) -p IDENTITY_URL_EXTERNAL=$(IdentityUrlExternal) -p IDENTITY_URL=$(IdentityApiUrl) | oc apply -f-'
  34. failOnStderr: true
  35. displayName: 'Ensure Ordering API OpenShift DeploymentConfig and Service'