blob: f45ce65635cc4b38dffc862f36dbedc419475810 (
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
|
stages:
- build
- deploy
# x86_64 AppImage buid
x86_64-AppImage:
image: ubuntu:trusty
stage: build
tags:
- docker
before_script:
- apt-get update -qq
- chmod +x install_dependencies.sh
- ./install_dependencies.sh
script:
- cd ${CI_PROJECT_DIR}
- ls
- chmod +x build.sh
- chmod +x linuxdeploy-x86_64.AppImage
- ./linuxdeploy-x86_64.AppImage --appimage-extract
- ./build.sh
- mv ManaPlus-*-x86_64.AppImage ManaPlus-x86_64.AppImage
- sha256sum ManaPlus-x86_64.AppImage > x86_64-sha256checksum.txt
- cd
- find / -type f -name "*.AppImage"
artifacts:
paths:
- "ManaPlus-x86_64.AppImage"
- "x86_64-sha256checksum.txt"
# i386 AppImage buid
i386-AppImage:
image: i386/ubuntu:trusty
stage: build
tags:
- docker
before_script:
- apt-get update -qq
- chmod +x install_dependencies.sh
- ./install_dependencies.sh
script:
- cd ${CI_PROJECT_DIR}
- ls
- chmod +x build.sh
- chmod +x linuxdeploy-i386.AppImage
- ./linuxdeploy-i386.AppImage --appimage-extract
- ./build.sh
- mv ManaPlus-*-i386.AppImage ManaPlus-i386.AppImage
- sha256sum ManaPlus-i386.AppImage > i386-sha256checksum.txt
- cd
- find / -type f -name "*.AppImage"
artifacts:
paths:
- "ManaPlus-i386.AppImage"
- "i386-sha256checksum.txt"
# deploy
deploy-appImages:
stage: deploy
image: alpine
before_script:
- apk add openssh-client zip
- eval $(ssh-agent -s)
- mkdir -p ~/.ssh
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' > ~/.ssh/id_rsa
- chmod -R 700 ~/.ssh
script:
- scp -o StrictHostKeyChecking=no ManaPlus-x86_64.AppImage $MYHOST:$FILE_LOCATION
- scp -o StrictHostKeyChecking=no ManaPlus-i386.AppImage $MYHOST:$FILE_LOCATION
|