blob: 3f0a63e4b86e7a0bceca3c8dca0bb776eaa33447 (
plain) (
blame)
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
|
stages:
- test
- deploy
image: ubuntu:18.04
before_script:
- uname -a
testxml:
stage: test
script:
- ./.tools/testxml.sh
- pwd
except:
- stable
pngcheck:
stage: test
script:
- ./.tools/pngcheck.sh
imagemagiccheck:
stage: test
script:
- ./.tools/imagemagiccheck.sh
except:
- stable
licensecheck:
stage: test
script:
- ./.tools/licensecheck.sh
allow_failure: true
except:
- stable
manaplus:
stage: test
image: debian:stable
script:
- ./.tools/manaplus.sh
artifacts:
paths:
- shared
when: always
expire_in: 3 week
except:
- stable
newlines:
stage: test
script:
- ./.tools/newlines.sh
artifacts:
paths:
- shared
when: always
expire_in: 3 week
.oldpages:
stage: deploy
script:
- ./.tools/deploy.sh
- pwd
artifacts:
paths:
- public
only:
- master
pages:
stage: deploy
image: ubuntu:18.04
variables:
GIT_STRATEGY: clone
GIT_SUBMODULE_STRATEGY: recursive
GIT_DEPTH: "1"
UPDATE_DIR: "../../../public"
UPDATE_HTTP: "none"
CC: "make"
tags:
- glados
script:
- apt-get -qq update
- apt-get install -qq -y make zip zlib1g-dev zlibc python ssh rsync python3 git wget
- mkdir public
- git clone https://git.themanaworld.org/revolt/tools.git tools
- pwd
- ls -lh
- ls -lh ..
- ln -s $(pwd) ../client-data
- mv -n tools ../tools
- cd ..
- cd tools/update
- wget https://git.themanaworld.org/ml/tools/-/raw/master/adler32/adler32
- chmod +x adler32
- cp adler32 /bin/
- ./createnew.sh
- ls -lh upload
- cp -rv upload/ public/
- echo '<title>static update server</title><a href="TMW.zip">TMW.zip</a><br><a href="TMW-music.zip">TMW-music.zip</a><br><a href="news.txt">news.txt</a><br><a href="resources.xml">resources.xml</a>' > public/index.html
- pwd
- cp -rv public ../../public
- cp -rvu public ../../client-data/public
- echo "Now deploying..."
- ls -lh public
- mkdir -p ~/.ssh
- echo "${SSH_PRIVATE_KEY}" | base64 -d | tr -d '\r' > ~/.ssh/id_rsa
- chmod -R 700 ~/.ssh
- rsync -e 'ssh -p 22 -o StrictHostKeyChecking=no' -aHv --delete public/ $MYHOST:$FILE_LOCATION
- echo "Deploy script finished"
artifacts:
paths:
- public
only:
- stable
|