Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Website
poul.org
Commits
1d7893e9
Verified
Commit
1d7893e9
authored
Sep 24, 2019
by
Davide Depau
Browse files
Add SSH host key to environment before rsync-ing
parent
31a35863
Pipeline
#70
failed with stage
in 1 minute and 12 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
1d7893e9
...
...
@@ -17,6 +17,8 @@ deploy-prod:
-
apk add rsync
-
bundle install
-
jekyll build -d public
-
mkdir -p "$HOME/.ssh"
-
echo "$SSH_KNOWN_HOSTS" > "$HOME/.ssh/known_hosts"
-
rsync -e "ssh -i $SSH_DEPLOY_KEY" --delete-after -rlptP public/ "$SSH_DEPLOY_USER@$SSH_DEPLOY_HOST:/www.poul.org/"
cache
:
key
:
gems
...
...
Write
Preview
Markdown
is supported
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