Commit 30a00925 authored by Isabella Skořepová's avatar Isabella Skořepová

cache subrepos

parent e1bfcf35
Pipeline #126 failed with stage
......@@ -10,6 +10,9 @@ upload:
cache:
untracked: true
paths:
- static/
- content/
# Needs following env var: LFTP_PASSWORD
......@@ -8,8 +8,9 @@ fi
rm -rf build
mkdir -p build/theme
time node index.js --noserver
echo "Site compilation ended with status code $?"
if [ $? -ne 0 ]
RET=$?
echo "Site compilation ended with status code $RET"
if [ $RET -ne 0 ]
then
echo "Error detected. Exitting."
exit 1
......@@ -33,7 +34,8 @@ if [ "$1" == "ftp" ]; then
open --user $USER --env-password ftp://$HOST/;\
mirror -c --verbose=9 -e -R -L ./build /;\
exit 0;"
echo "LFTP finished with return code $?"
RET=$?
echo "LFTP finished with return code $RET"
else
echo "Using SFTP"
time lftp -e "set sftp:auto-confirm yes;\
......@@ -44,7 +46,8 @@ else
open --user $USER --env-password -p 2121 sftp://$HOST/;\
mirror -c --verbose=9 -e -R -L ./build /;\
exit 0;"
echo "LFTP finished with return code $?"
RET=$?
echo "LFTP finished with return code $RET"
fi
exit 0
exit $RET
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