|
|
- variables:
- OpenShiftServiceConnection: 'OpenShift on ARO'
- trigger:
- branches:
- include:
- - master
- - dev
- paths:
- include:
- - deploy/aro/marketing-api/*
- stages:
- - stage: development
- displayName: Development
- variables:
- OpenShiftProject: development
- SourceImageRegistryProjectName: development
- jobs:
- - job: MarketingApiDeployment
- displayName: 'Marketing API Deployment'
- variables:
- - template: ../azure-devops-templates/variables.yml
- pool:
- vmImage: 'windows-latest'
- steps:
- - task: redhat.openshift-vsts.oc-setup-task.oc-setup@2
- displayName: 'Setup Openshift CLI'
- inputs:
- openshiftService: $(OpenShiftServiceConnection)
- - script: 'oc project $(OpenShiftProject)'
- failOnStderr: true
- displayName: 'Set OpenShift Project Context'
- - 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-'
- failOnStderr: true
- displayName: 'Ensure Marketing API OpenShift DeploymentConfig and Service'
|