From 4d70600fc69b0cdc999e94fb7328434a246cd6ea Mon Sep 17 00:00:00 2001
From: Daniel Gerhardt <code@dgerhardt.net>
Date: Mon, 18 Jul 2016 16:02:00 +0200
Subject: [PATCH] Use updated CI config from 2.4

---
 .gitlab-ci.yml | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index a1253e3cc..6477389f6 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -25,11 +25,11 @@ sync_mirror:
   script:
     - mkdir ~/.ssh && echo "$GITHUB_HOST_KEY" > ~/.ssh/known_hosts
     - eval $(ssh-agent -s) && ssh-add <(echo "$GITHUB_DEPLOY_KEY")
-    - git clone --bare $CI_BUILD_REPO mirror.git
+    - git clone --bare "$CI_BUILD_REPO" mirror.git
     - cd mirror.git
     - git update-ref -d refs/tags/production
     - git update-ref -d refs/tags/staging
-    - git push --mirror $MIRROR_REPO
+    - git push --mirror "$MIRROR_REPO"
 
 sonar:
   stage: analysis
@@ -70,11 +70,11 @@ tomcat_production:
   only:
     - production
   script:
-    - curl --upload-file $WAR_FILE https://$PROD_TOMCAT_USER:$PROD_TOMCAT_PASSWORD@$PROD_TOMCAT_HOST/manager/deploy?path=%2Fapi
+    - curl --fail --upload-file $WAR_FILE "https://$PROD_TOMCAT_USER:$PROD_TOMCAT_PASSWORD@$PROD_TOMCAT_HOST/manager/text/deploy?path=%2Fapi&update=true"
 
 tomcat_development:
   stage: deploy
   only:
     - staging
   script:
-    - curl --upload-file $WAR_FILE https://$DEV_TOMCAT_USER:$DEV_TOMCAT_PASSWORD@$DEV_TOMCAT_HOST/manager/deploy?path=%2Fapi
+    - curl --fail --upload-file $WAR_FILE "https://$DEV_TOMCAT_USER:$DEV_TOMCAT_PASSWORD@$DEV_TOMCAT_HOST/manager/text/deploy?path=%2Fapi&update=true"
-- 
GitLab