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.

34 lines
1.3 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/webhooks-client/*
  11. stages:
  12. - stage: development
  13. displayName: Development
  14. variables:
  15. OpenShiftProject: development
  16. SourceImageRegistryProjectName: development
  17. EnvironmentName: dev
  18. jobs:
  19. - job: WebhooksClientDeployment
  20. displayName: 'Webhooks Client Deployment'
  21. variables:
  22. - template: ../azure-devops-templates/variables.yml
  23. pool:
  24. vmImage: 'windows-latest'
  25. steps:
  26. - task: redhat.openshift-vsts.oc-setup-task.oc-setup@2
  27. displayName: 'Setup Openshift CLI'
  28. inputs:
  29. openshiftService: $(OpenShiftServiceConnection)
  30. - script: 'oc project $(OpenShiftProject)'
  31. failOnStderr: true
  32. displayName: 'Set OpenShift Project Context'
  33. - script: 'oc process -f ./deploy/aro/webhooks-client/webhooks-client-deploy-template.yml -p IMAGE_REGISTRY_PROJECT_NAME=$(SourceImageRegistryProjectName) -p WEBHOOKS_TOKEN=$(WebhooksToken) -p IDENTITY_API_URL=$(IdentityApiUrl) -p WEBHOOKS_WEB_CLIENT_URL=$(WebhooksWebClientUrl) -p WEBHOOKS_API_URL=$(WebhooksApiUrl) | oc apply -f-'
  34. failOnStderr: true
  35. displayName: 'Ensure Webhooks Client OpenShift DeploymentConfig and Service'