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
2aa0edd3
Verified
Commit
2aa0edd3
authored
Sep 24, 2019
by
Davide Depau
Browse files
Use rsync to deploy prod site
parent
6cef6fd6
Pipeline
#65
failed with stage
in 1 minute and 38 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
2aa0edd3
...
...
@@ -9,15 +9,15 @@ variables:
GIT_SUBMODULE_STRATEGY
:
recursive
before_script
:
-
apk add lftp
-
./scripts/ci_fix_baseurl.sh
deploy-prod
:
stage
:
deploy
script
:
-
apk add rsync
-
bundle install
-
jekyll build -d public
-
./scripts/ci_deploy_site.sh public
-
rsync -e "ssh -i $SSH_DEPLOY_KEY" --delete-after -r public/ "sftp://$SSH_DEPLOY_USER@$SSH_DEPLOY_HOST:/www.poul.org/"
cache
:
key
:
gems
paths
:
...
...
scripts/ci_deploy_site.sh
deleted
100755 → 0
View file @
6cef6fd6
#!/bin/bash
deploy_path
=
"
$1
"
lftp
<<
EOF
set sftp:connect-program "ssh -a -x -i
$SSH_DEPLOY_KEY
"
open -u
$SSH_DEPLOY_USER
, sftp://
$SSH_DEPLOY_HOST
mirror -R --delete "
$deploy_path
/" /www.poul.org/
exit
EOF
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