Commit a1ad8353 authored by Frederic Pasteleurs's avatar Frederic Pasteleurs

Transfer using piped tar file instead of scp: allows for deployment using a...

Transfer using piped tar file instead of scp: allows for deployment using a jailed user with a static busybox
parent faa8b5fe
Pipeline #36779373 failed with stage
in 1 minute and 6 seconds
......@@ -31,8 +31,9 @@ pages:
- hugo version
- hugo
- echo $(date +%Y.%m.%d)
- scp -r public [email protected]:/srv/www/hsbxl.be/www/versions/$(date +%Y.%m.%d)/
- ssh [email protected] "rm /srv/www/hsbxl.be/www/welcome; ln -sf /srv/www/hsbxl.be/www/versions/$(date +%Y.%m.%d)/ /srv/www/hsbxl.be/www/welcome"
- tar cz public | ssh [email protected] "mkdir /www/versions/$(date +%Y.%m.%d); cd /www/versions/$(date +%Y.%m.%d); tar xz"
#- scp -r public [email protected]:/srv/www/hsbxl.be/www/versions/$(date +%Y.%m.%d)/
- ssh [email protected] "rm /www/live; ln -sf /www/versions/$(date +%Y.%m.%d)/public /www/live"
artifacts:
paths:
- public
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment