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.

33 lines
1.2 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/payment-api/*
  11. stages:
  12. - stage: development
  13. displayName: Development
  14. variables:
  15. OpenShiftProject: development
  16. SourceImageRegistryProjectName: development
  17. jobs:
  18. - job: PaymentApiDeployment
  19. displayName: 'Payment API Deployment'
  20. variables:
  21. - template: ../azure-devops-templates/variables.yml
  22. pool:
  23. vmImage: 'windows-latest'
  24. steps:
  25. - task: redhat.openshift-vsts.oc-setup-task.oc-setup@2
  26. displayName: 'Setup Openshift CLI'
  27. inputs:
  28. openshiftService: $(OpenShiftServiceConnection)
  29. - script: 'oc project $(OpenShiftProject)'
  30. failOnStderr: true
  31. displayName: 'Set OpenShift Project Context'
  32. - script: 'oc process -f ./deploy/aro/payment-api/paymentapi-deploy-template.yml -p IMAGE_REGISTRY_PROJECT_NAME=$(SourceImageRegistryProjectName) -p RABBITMQ_HOSTNAME=$(RabbitMqHostname) | oc apply -f-'
  33. failOnStderr: true
  34. displayName: 'Ensure Payment API OpenShift DeploymentConfig and Service'