Browse Source

Updated deploy pipeline

pull/1259/head
Tim McCarthy 5 years ago
parent
commit
d13d9b0d40
1 changed files with 4 additions and 3 deletions
  1. +4
    -3
      deploy/aro/basket-api/azure-pipelines.yml

+ 4
- 3
deploy/aro/basket-api/azure-pipelines.yml View File

@ -1,5 +1,4 @@
variables: variables:
OpenShiftProject: development
AppName: basketapi AppName: basketapi
OpenShiftServiceConnection: 'OpenShift on ARO' OpenShiftServiceConnection: 'OpenShift on ARO'
resources: resources:
@ -9,6 +8,8 @@ resources:
stages: stages:
- stage: development - stage: development
displayName: Development displayName: Development
variables:
OpenShiftProject: development
jobs: jobs:
- job: Configuration - job: Configuration
pool: pool:
@ -18,12 +19,12 @@ stages:
inputs: inputs:
pipeline: BasketApiBuild pipeline: BasketApiBuild
- task: redhat.openshift-vsts.oc-setup-task.oc-setup@2 - task: redhat.openshift-vsts.oc-setup-task.oc-setup@2
displayName: 'oc-setup '
displayName: 'Setup Openshift CLI'
inputs: inputs:
openshiftService: $(OpenShiftServiceConnection) openshiftService: $(OpenShiftServiceConnection)
- script: 'oc project $(OpenShiftProject)' - script: 'oc project $(OpenShiftProject)'
failOnStderr: true failOnStderr: true
displayName: 'Set Project Context'
displayName: 'Set OpenShift Project Context'
- script: 'oc process -f $(Pipeline.Workspace)/openshift-webapp-deploy-template.yml -p APPLICATION_NAME=$(AppName) | oc apply -f-' - script: 'oc process -f $(Pipeline.Workspace)/openshift-webapp-deploy-template.yml -p APPLICATION_NAME=$(AppName) | oc apply -f-'
failOnStderr: true failOnStderr: true
displayName: 'Ensure OpenShift DeploymentConfig and Service' displayName: 'Ensure OpenShift DeploymentConfig and Service'

Loading…
Cancel
Save