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
1bc881ea
Verified
Commit
1bc881ea
authored
8 years ago
by
Isabella Skořepová
Browse files
Options
Downloads
Patches
Plain Diff
Added basic .gitlab-ci.yml
parent
c7e31dab
No related branches found
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
+10
-0
10 additions, 0 deletions
.gitlab-ci.yml
upload
+18
-5
18 additions, 5 deletions
upload
with
28 additions
and
5 deletions
.gitlab-ci.yml
0 → 100644
+
10
−
0
View file @
1bc881ea
before_script
:
-
node --version
-
./configure.sh
upload
:
script
:
-
./upload
# Needs following env var: LFTP_PASSWORD
This diff is collapsed.
Click to expand it.
upload
+
18
−
5
View file @
1bc881ea
...
...
@@ -7,19 +7,32 @@ fi
rm -rf build
mkdir -p build/theme
node index.js --noserver
time
node index.js --noserver
echo "Site compiled"
chmod a+X build -R
USER=ok1kvk.cz-www-nove
HOST=ok1kvk.cz
HOST=krios.blueboard.cz
MAX_RETRIES=2
RECONNECT_INTERVAL=5
echo "======================================================================"
echo "Uploading to nove.ok1kvk.cz"
if [ $1 == "ftp" ]; then
if [
"
$1
"
== "ftp" ]; then
echo "Using FTP"
lftp -c "set ftp:ssl-allow no;open --user ok1kvk.cz-www-nove --env-password ftp://ftp.ok1kvk.cz/; mirror -c --verbose=9 -e -R -L ./build /"
time lftp -c "set cmd:fail-exit yes;\
set net:timeout 5;\
set net:reconnect-interval-base $RECONNECT_INTERVAL;\
set net:max-retries $MAX_RETRIES;\
set ftp:ssl-allow no;\
open --user $USER --env-password ftp://$HOST/;\
mirror -c --verbose=9 -e -R -L ./build /"
else
echo "Using SFTP"
lftp -c "set ftp:ssl-allow no;open --user ok1kvk.cz-www-nove --env-password -p 2121 sftp://ftp.ok1kvk.cz/; mirror -c --verbose=9 -e -R -L ./build /"
time lftp -c "set cmd:fail-exit yes;\
set net:timeout 5;\
set net:reconnect-interval-base $RECONNECT_INTERVAL;\
set net:max-retries $MAX_RETRIES;\
open --user $USER --env-password -p 2121 sftp://$HOST/;\
mirror -c --verbose=9 -e -R -L ./build /"
fi
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