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.

30 lines
1.1 KiB

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