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
Commits
242c6a6c
Commit
242c6a6c
authored
5 years ago
by
Tom Käsler
Browse files
Options
Downloads
Patches
Plain Diff
Add sync job to github
parent
1433b8e3
1 merge request
!205
Add sync job to github
Pipeline
#27002
passed with stages
in 5 minutes and 42 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+17
-0
17 additions, 0 deletions
.gitlab-ci.yml
with
17 additions
and
0 deletions
.gitlab-ci.yml
+
17
−
0
View file @
242c6a6c
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"
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment