Newer
Older
# Needs following env vars:
# - LFTP_PASSWORD
# - DEPLOY_SSH_KEY
variables:
HTML_DIR: "/html/www"
SSH_HOST: "uploader@cloud.ok1kvk.cz"
- node ./index.js --contentdir content --staticdir static --themedir theme --builddir build --noserver --nowatch
- echo "$DEPLOY_SSH_KEY" > sshkey
- rsync -e 'ssh -i sshkey -o StrictHostKeyChecking=no' -rc --delete build/ $SSH_HOST:$HTML_DIR/