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.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/marketing-api/*
  11. stages:
  12. - stage: development
  13. displayName: Development
  14. variables:
  15. OpenShiftProject: development
  16. SourceImageRegistryProjectName: development
  17. jobs:
  18. - job: MarketingApiDeployment
  19. displayName: 'Marketing 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/marketing-api/marketingapi-deploy-template.yml -p IMAGE_REGISTRY_PROJECT_NAME=$(SourceImageRegistryProjectName) -p MONGO_DB_CONNECTION_STRING=$(MongoConnectionString) -p MARKETING_DB_NAME=$(MarketingDbName) -p RABBITMQ_HOSTNAME=$(RabbitMqHostname) -p IDENTITY_URL=$(IdentityApiUrl) -p IDENTITY_URL_EXTERNAL=$(IdentityUrlExternal) -p PIC_BASE_URL=$(PicBaseUrl) | oc apply -f-'
  33. failOnStderr: true
  34. displayName: 'Ensure Marketing API OpenShift DeploymentConfig and Service'