Browse Source

Added a delete for the ConfigMap before creating it

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

+ 4
- 1
deploy/aro/mobilemarketingapigw/azure-pipelines.yml View File

@ -35,9 +35,12 @@ stages:
- script: 'oc project $(OpenShiftProject)'
failOnStderr: true
displayName: 'Set OpenShift Project Context'
- script: 'oc delete configmap mobilemarketingapigw'
failOnStderr: true
displayName: 'Delete Envoy ConfigMap'
- script: 'oc create configmap mobilemarketingapigw --from-file=./deploy/aro/mobilemarketingapigw/envoy.yml'
failOnStderr: true
displayName: 'Add Envoy ConfigMap'
displayName: 'Create Envoy ConfigMap'
- script: 'oc process -f ./deploy/aro/mobilemarketingapigw/mobilemarketingapigw-deploy-template.yml -p IMAGE_REGISTRY_PROJECT_NAME=$(SourceImageRegistryProjectName) | oc apply -f-'
failOnStderr: true
displayName: 'Ensure Mobile Marketing API Gateway OpenShift DeploymentConfig and Service'

Loading…
Cancel
Save