Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
arsnova-lite
Manage
Activity
Members
Labels
Plan
Issues
24
Issue boards
Milestones
Wiki
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Privacy
Imprint
Contact
Snippets
Groups
Projects
Show more breadcrumbs
ARSnova
arsnova-lite
Merge requests
!205
Add sync job to github
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Add sync job to github
add-sync-to-github
into
master
Overview
1
Commits
1
Pipelines
1
Changes
1
Merged
Tom Käsler
requested to merge
add-sync-to-github
into
master
5 years ago
Overview
1
Commits
1
Pipelines
1
Changes
1
Expand
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
242c6a6c
1 commit,
5 years ago
1 file
+
17
−
0
Expand all files
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
.gitlab-ci.yml
+
17
−
0
Options
variables
:
BUILD_DIR
:
dist
MIRROR_REPO
:
git@github.com:thm-projects/arsnova-lite.git
stages
:
-
codestyle
@@ -93,3 +95,18 @@ deploy:
-
ssh-keyscan "$SERVER_URL" >> ~/.ssh/known_hosts
-
ssh-add <(echo "$SSH_PRIVATE_KEY")
-
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"