Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Viacheslav Ostroukh
research-docker
Commits
ba8bac95
Commit
ba8bac95
authored
Nov 07, 2017
by
Rafal Skolasinski
Browse files
fix mirroring - sucessfully
parent
0acc5989
Changes
1
Show whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
ba8bac95
...
...
@@ -8,11 +8,11 @@ mirror repository:
variables
:
REPO
:
"
git@github.com:quantum-tinkerer/research-docker.git"
before_script
:
-
mkdir
~
/.ssh && chmod 700
~
/.ssh
-
ssh-keyscan github.com >>
~
/.ssh/known_hosts
-
echo "$DEPLOY_KEY" >
~
/.ssh/id_rsa && chmod 600
~
/.ssh/id_rsa
-
mkdir
/root
/.ssh && chmod 700
/root
/.ssh
-
ssh-keyscan
-t rsa
github.com >>
/root
/.ssh/known_hosts
-
echo "$DEPLOY_KEY" >
/root
/.ssh/id_rsa && chmod 600
/root
/.ssh/id_rsa
after_script
:
-
rm -rf
~
/.ssh
-
rm -rf
/root
/.ssh
script
:
-
ORIGIN_URL=$(git config --get remote.origin.url)
-
cd $(mktemp -d); git clone --bare $ORIGIN_URL .
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment