Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
content
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ok1kvk.cz
content
Commits
30a00925
Verified
Commit
30a00925
authored
8 years ago
by
Isabella Skořepová
Browse files
Options
Downloads
Patches
Plain Diff
cache subrepos
parent
e1bfcf35
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+3
-0
3 additions, 0 deletions
.gitlab-ci.yml
upload
+8
-5
8 additions, 5 deletions
upload
with
11 additions
and
5 deletions
.gitlab-ci.yml
+
3
−
0
View file @
30a00925
...
...
@@ -10,6 +10,9 @@ upload:
cache
:
untracked
:
true
paths
:
-
static/
-
content/
# Needs following env var: LFTP_PASSWORD
This diff is collapsed.
Click to expand it.
upload
+
8
−
5
View file @
30a00925
...
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment