-
Notifications
You must be signed in to change notification settings - Fork 5
/
.gitlab-ci.yml
55 lines (54 loc) · 2.87 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
stages:
- deploy
deploy:
stage: deploy
image: debian:jessie
only:
- master
script:
- apt-get -u update
- apt-get -y install zip unzip curl
- curl -O $FTPSITE/janban.zip --user $FTPUSER:$FTPPWD
- curl -O $FTPSITE/version.txt --user $FTPUSER:$FTPPWD
- export xx=`cat version.txt`
- if curl -O $FTPSITE/janban.$xx.zip --user $FTPUSER:$FTPPWD; then echo found; else echo not found; fi
- if [ -f janban.$xx.zip ]; then echo no upload needed; else mv janban.zip janban.$xx.zip && curl -T janban.$xx.zip $FTPSITE --user $FTPUSER:$FTPPWD; fi
- rm janban.$xx.zip
- rm version.txt
- sed -i "s|#WHATSNEW#|$WHATSNEW|" js/app.js
- sed -i "s|#VERSION#|$VERSION|" js/app.js
- sed -i "s|#DOWNLOAD#|$DOWNLOAD|" js/app.js
- sed -i "s|#PINGBACK#|$PINGBACK|" js/app.js
- sed 's/";//g' js/version.js > version.txt1
- sed 's/const VERSION = "//g' version.txt1 > version.txt
- curl -T version.txt $FTPSITE --user $FTPUSER:$FTPPWD
- curl -T whatsnew.html $FTPSITE --user $FTPUSER:$FTPPWD
- curl -T upgrade.html $FTPSITE --user $FTPUSER:$FTPPWD
- rm version.txt
- rm version.txt1
- rm whatsnew.html
- rm upgrade.html
- zip -r install.zip install.cmd
- curl -T install.zip $FTPSITE --user $FTPUSER:$FTPPWD
- rm install.zip
- zip -r janban.zip *
- curl -T janban.zip $FTPSITE --user $FTPUSER:$FTPPWD
- mv kanban.html index.html
- curl -T index.html $FTPSITE --user $FTPUSERJANBAN:$FTPPWDJANBAN
- curl -T janban-icon-512.jpg $FTPSITE --user $FTPUSERJANBAN:$FTPPWDJANBAN
- curl -T lib/angular.js $FTPSITE/lib/ --user $FTPUSERJANBAN:$FTPPWDJANBAN
- curl -T lib/angular.min.js $FTPSITE/lib/ --user $FTPUSERJANBAN:$FTPPWDJANBAN
- curl -T lib/bootstrap.min.js $FTPSITE/lib/ --user $FTPUSERJANBAN:$FTPPWDJANBAN
- curl -T lib/deep-diff-0.3.8.min.js $FTPSITE/lib/ --user $FTPUSERJANBAN:$FTPPWDJANBAN
- curl -T lib/jquery.min.js $FTPSITE/lib/ --user $FTPUSERJANBAN:$FTPPWDJANBAN
- curl -T lib/jquery-ui.min.js $FTPSITE/lib/ --user $FTPUSERJANBAN:$FTPPWDJANBAN
- curl -T lib/minify.json.js $FTPSITE/lib/ --user $FTPUSERJANBAN:$FTPPWDJANBAN
- curl -T lib/moment.min.js $FTPSITE/lib/ --user $FTPUSERJANBAN:$FTPPWDJANBAN
- curl -T lib/sortable.js $FTPSITE/lib/ --user $FTPUSERJANBAN:$FTPPWDJANBAN
- curl -T lib/sortable.min.js $FTPSITE/lib/ --user $FTPUSERJANBAN:$FTPPWDJANBAN
- curl -T js/app.js $FTPSITE/js/ --user $FTPUSERJANBAN:$FTPPWDJANBAN
- curl -T js/exchange.js $FTPSITE/js/ --user $FTPUSERJANBAN:$FTPPWDJANBAN
- curl -T js/version.js $FTPSITE/js/ --user $FTPUSERJANBAN:$FTPPWDJANBAN
- curl -T css/bootstrap.min.css $FTPSITE/css/ --user $FTPUSERJANBAN:$FTPPWDJANBAN
- curl -T css/taskboard.css $FTPSITE/css/ --user $FTPUSERJANBAN:$FTPPWDJANBAN
- curl -T install.cmd $FTPSITE --user $FTPUSERJANBAN:$FTPPWDJANBAN