Skip to content
Snippets Groups Projects
Verified Commit 1a29bc11 authored by Isabella Skořepová's avatar Isabella Skořepová
Browse files

Change upload to user sshfs

parent 8c0c2c60
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -8,7 +8,11 @@ all:
- if [ -d static ] ; then cd static; git pull; cd ..; else git clone https://git.ok1kvk.cz/ok1kvk.cz/static.git; fi
- cd generator/; npm install; cd ..
- node generator/index.js --contentdir . --staticdir static --themedir generator/theme --builddir build --noserver
- generator/upload
- mkdir -p upload
- echo $LFTP_PASSWORD | sshfs -o password_stdin -p 2121 ok1kvk.cz-www-nove@krios.blueboard.cz:/ upload
- /usr/bin/time -f "Upload took %e" -- node generator/sftp-sync.js --sourcedir build --server localdirectory --targetdir upload --port 2121
- fusermount -u upload
- rm -rf upload
cache:
paths:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment