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.

39 lines
1.5 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/webshoppingapigw/*
  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: WebShoppingApiGatewayDeployment
  20. displayName: 'Web Shopping API Gateway Deployment'
  21. variables:
  22. - template: ../azure-devops-templates/variables.yml
  23. pool:
  24. vmImage: 'windows-latest'
  25. steps:
  26. - task: colinsalmcorner.colinsalmcorner-buildtasks.replace-tokens-task.ReplaceTokens@1
  27. displayName: 'Replace tokens in envoy.yml'
  28. inputs:
  29. sourcePath: ./deploy/aro/webshoppingapigw
  30. filePattern: envoy.yml
  31. - task: redhat.openshift-vsts.oc-setup-task.oc-setup@2
  32. displayName: 'Setup Openshift CLI'
  33. inputs:
  34. openshiftService: $(OpenShiftServiceConnection)
  35. - script: 'oc project $(OpenShiftProject)'
  36. failOnStderr: true
  37. displayName: 'Set OpenShift Project Context'
  38. - script: 'oc process -f ./deploy/aro/apigw-templates/apigw-deploy-template.yml -p APPLICATION_NAME=webshoppingapigw -p IMAGE_REGISTRY_PROJECT_NAME=$(SourceImageRegistryProjectName) | oc apply -f-'
  39. failOnStderr: true
  40. displayName: 'Ensure Web Shopping API Gateway OpenShift DeploymentConfig and Service'