Added a delete for the ConfigMap before creating it

This commit is contained in:
Tim McCarthy 2020-03-02 08:26:56 -06:00
parent 30e64e3173
commit f9f54bd0e0

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'