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.

28 lines
1.1 KiB

5 years ago
  1. variables:
  2. AppName: basketapi
  3. OpenShiftServiceConnection: 'OpenShift on ARO'
  4. SourceImageRegistryProjectName: 'development'
  5. resources:
  6. pipelines:
  7. - pipeline: BasketApiBuild
  8. source: Basket-API-Build
  9. stages:
  10. - stage: development
  11. displayName: Development
  12. variables:
  13. OpenShiftProject: development
  14. jobs:
  15. - job: Configuration_Deployment
  16. displayName: 'Configuration Deployment'
  17. pool:
  18. vmImage: 'windows-latest'
  19. steps:
  20. - task: redhat.openshift-vsts.oc-setup-task.oc-setup@2
  21. displayName: 'Setup Openshift CLI'
  22. inputs:
  23. openshiftService: $(OpenShiftServiceConnection)
  24. - script: 'oc project $(OpenShiftProject)'
  25. failOnStderr: true
  26. displayName: 'Set OpenShift Project Context'
  27. - script: 'oc process -f ./deploy/aro/openshift-templates/webapp-deploy-template.yml -p APPLICATION_NAME=$(AppName) -p IMAGE_REGISTRY_PROJECT_NAME=$(SourceImageRegistryProjectName) | oc apply -f-'
  28. failOnStderr: true
  29. displayName: 'Ensure OpenShift DeploymentConfig and Service'