Commit 227981c6 authored by Tom Käsler's avatar Tom Käsler

Merge branch 'syncToGitHub' into 'master'

Sync to git hub

See merge request !11
parents 3a1677bc ee7b22b1
Pipeline #7865 failed with stages
in 5 minutes and 24 seconds
stages:
- test
- build
- synchronization
services:
- mysql:latest
......@@ -10,6 +11,7 @@ variables:
MYSQL_DATABASE: arsnova3
MYSQL_ROOT_PASSWORD: arsnova3_prototype
WAR_FILE: target/scala-2.11/ARSnova-*.jar
MIRROR_REPO: git@github.com:thm-projects/arsnova-3-backend.git
stylecheck:
stage: test
......@@ -29,6 +31,19 @@ test:
# Execute your project's tests
- sbt clean test
sync_mirror:
stage: synchronization
when: always
allow_failure: true
script:
- git clone --bare "$CI_BUILD_REPO" mirror.git
- mkdir ~/.ssh && echo "$GITHUB_HOST_KEY" > ~/.ssh/known_hosts
- eval $(ssh-agent -s) && ssh-add <(echo "$GITHUB_DEPLOY_KEY")
- cd mirror.git
- git update-ref -d refs/tags/production
- git update-ref -d refs/tags/staging
- git push --mirror "$MIRROR_REPO"
package:
stage: build
only:
......
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