Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
open
cryptops
Commits
d21d15f4
Commit
d21d15f4
authored
Jan 04, 2018
by
Maarten de Waard
🤘🏻
Browse files
add SSH key as in GitLab instructions
parent
e970615f
Pipeline
#3270
failed with stages
in 43 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
deploy.sh
View file @
d21d15f4
#!/bin/sh
#!/bin/
ba
sh
# Run ssh-agent and add ssh key.
eval
$(
ssh-agent
-s
)
ssh-add <
(
echo
"
$SSH_KEY
"
)
echo
"
$SSH_PRIVATE_KEY
"
|
tr
-d
'\r'
| ssh-add -
>
/dev/null
# Add server's ssh host key to known hosts.
mkdir
-p
~/.ssh
[[
-f
/.dockerenv
]]
&&
echo
"
$SSH_SERVER_HOSTKEYS
"
>
~/.ssh/known_hosts
# Install rsync.
# apt-get update
# apt-get install -y rsync
chmod
700 ~/.ssh
[[
-f
/.dockerenv
]]
&&
echo
"
$SSH_SERVER_HOSTKEYS
"
>
~/.ssh/known_hosts
# Upload site.
rsync
-r
--verbose
--compress
--delete
./docs/_build/html/
*
\
...
...
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