Skip to content
Snippets Groups Projects
Commit 4c53a6e1 authored by Paul Pawletta's avatar Paul Pawletta
Browse files

Update .gitlab-ci.sh

parent e9b7a094
No related branches found
No related tags found
No related merge requests found
Pipeline #767 passed with stage
in 7 seconds
......@@ -3,12 +3,13 @@
PROJECT_ACCESS_TOKEN=NdNmKqje9H6NMMeAVQqn
REPO_NAME=mirrortest.git
ORIGIN_URL=https://token:${PROJECT_ACCESS_TOKEN}@gitlab.ebrains.eu/paulpawletta/$REPO_NAME
GITHUB_REPO_URL=https://github.com/PaulPawletta/$REPO_NAME
GITHUB_URL=https://github.com/PaulPawletta/$REPO_NAME
rm -rf mirrortest
git clone $ORIGIN_URL
cd mirrortest
git remote add github_repo $ORIGIN_URL
git fetch origin --tags ; git fetch github_repo --tags
git push origin; git push origin --tags
git remote add github $GITHUB_URL
git fetch --all
git push origin 'refs/remotes/github/*:refs/heads/*'
git push origin 'refs/tags/*:refs/tags/*'
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