Skip to content
Snippets Groups Projects
Commit 3ebe6af0 authored by Tom Käsler's avatar Tom Käsler
Browse files

Remove syncjob from CI

parent 37f8129b
1 merge request!378Remove syncjob from CI
Pipeline #30171 passed with stages
in 8 minutes and 39 seconds
variables: variables:
BUILD_DIR: dist BUILD_DIR: dist
MIRROR_REPO: git@github.com:thm-projects/arsnova-lite.git
stages: stages:
- codestyle - codestyle
...@@ -95,18 +93,3 @@ deploy: ...@@ -95,18 +93,3 @@ deploy:
- ssh-keyscan "$SERVER_URL" >> ~/.ssh/known_hosts - ssh-keyscan "$SERVER_URL" >> ~/.ssh/known_hosts
- ssh-add <(echo "$SSH_PRIVATE_KEY") - ssh-add <(echo "$SSH_PRIVATE_KEY")
- scp -r "$BUILD_DIR"* "$SSH_URL" - scp -r "$BUILD_DIR"* "$SSH_URL"
sync_mirror:
stage: deploy
tags:
- git
when: always
allow_failure: true
dependencies: []
script:
- eval $(ssh-agent -s)
- mkdir ~/.ssh && echo "$SYNC_SSH_KNOWN_HOSTS" > ~/.ssh/known_hosts
- ssh-add <(echo "$SYNC_SSH_PRIVATE_KEY")
- git clone --bare "$CI_REPOSITORY_URL" mirror.git
- cd mirror.git
- git push --mirror "$MIRROR_REPO"
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