Skip to content
Snippets Groups Projects
Commit e67dbf23 authored by Daniel Gerhardt's avatar Daniel Gerhardt
Browse files

Remove CI job for repo mirroring

GitLab can handle this w/o scripting by now.
parent 87825655
No related merge requests found
variables: variables:
MIRROR_REPO: git@github.com:thm-projects/arsnova-backend.git
WAR_FILE: target/arsnova-backend-*.war WAR_FILE: target/arsnova-backend-*.war
stages: stages:
...@@ -7,30 +6,11 @@ stages: ...@@ -7,30 +6,11 @@ stages:
- test - test
- build - build
- deploy - deploy
- synchronization
cache: cache:
paths: paths:
- .m2/ - .m2/
sync_mirror:
stage: synchronization
when: always
except:
- production
- staging
tags:
- git
allow_failure: true
script:
- mkdir ~/.ssh && echo "$GITHUB_HOST_KEY" > ~/.ssh/known_hosts
- eval $(ssh-agent -s) && ssh-add <(echo "$GITHUB_DEPLOY_KEY")
- git clone --bare "$CI_REPOSITORY_URL" mirror.git
- cd mirror.git
- git update-ref -d refs/tags/production
- git update-ref -d refs/tags/staging
- git push --mirror "$MIRROR_REPO"
sonar: sonar:
stage: analysis stage: analysis
only: only:
......
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