cache subrepos

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