Add .gitlab-ci.yml for syncing to github

This commit is contained in:
Christoph Haas 2018-03-13 12:23:04 +01:00
parent 4f9257dc24
commit 2c34ce83eb
1 changed files with 21 additions and 0 deletions

21
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,21 @@
# This file is only necessary for the gitlab to github sync and does not belong to the driver code.
#before_script:
# - ssh-keyscan -t rsa,dsa,ecdsa github.com > /etc/ssh/ssh_known_hosts
stages:
- mirror
variables:
MIRROR_REPOSITORY: "git@github.com:h44z/perixx1800_keyboard_driver.git"
mirror-github:
stage: mirror
cache: {}
script:
# Do a mirror clone of the repository
- git clone --mirror $CI_REPOSITORY_URL
# Mirror push it to the destination
- cd $CI_PROJECT_NAME.git
- git push --mirror $MIRROR_REPOSITORY
# Cleanup
- cd ..; rm -rf $CI_PROJECT_NAME.git