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
d3aa4879
Verified
Commit
d3aa4879
authored
Sep 24, 2019
by
Davide Depau
Browse files
Fix SSH key permissions before rsync-ing
parent
1d7893e9
Pipeline
#72
passed with stage
in 1 minute and 15 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
d3aa4879
...
...
@@ -19,6 +19,8 @@ deploy-prod:
-
jekyll build -d public
-
mkdir -p "$HOME/.ssh"
-
echo "$SSH_KNOWN_HOSTS" > "$HOME/.ssh/known_hosts"
-
chmod 700 "$HOME/.ssh/known_hosts"
-
chmod 700 "$SSH_DEPLOY_KEY"
-
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