GitLab steht Mittwoch, den 23. September, zwischen 10:00 und 12:00 Uhr aufgrund von Wartungsarbeiten nicht zur Verfügung.

Commit 4d70600f authored by Daniel Gerhardt's avatar Daniel Gerhardt

Use updated CI config from 2.4

parent b0dde020
...@@ -25,11 +25,11 @@ sync_mirror: ...@@ -25,11 +25,11 @@ sync_mirror:
script: script:
- mkdir ~/.ssh && echo "$GITHUB_HOST_KEY" > ~/.ssh/known_hosts - mkdir ~/.ssh && echo "$GITHUB_HOST_KEY" > ~/.ssh/known_hosts
- eval $(ssh-agent -s) && ssh-add <(echo "$GITHUB_DEPLOY_KEY") - 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 - cd mirror.git
- git update-ref -d refs/tags/production - git update-ref -d refs/tags/production
- git update-ref -d refs/tags/staging - git update-ref -d refs/tags/staging
- git push --mirror $MIRROR_REPO - git push --mirror "$MIRROR_REPO"
sonar: sonar:
stage: analysis stage: analysis
...@@ -70,11 +70,11 @@ tomcat_production: ...@@ -70,11 +70,11 @@ tomcat_production:
only: only:
- production - production
script: 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: tomcat_development:
stage: deploy stage: deploy
only: only:
- staging - staging
script: 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"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment