|
1 | 1 | --- |
2 | 2 | kind: pipeline |
3 | | -type: ssh |
4 | | -name: Ubuntu | Nginx + Apache2 |
5 | | - |
6 | | -concurrency: |
7 | | - limit: 1 |
8 | | - |
9 | | -server: |
10 | | - host: |
11 | | - from_secret: server_address |
12 | | - user: |
13 | | - from_secret: username |
14 | | - ssh_key: |
15 | | - from_secret: ssh_key |
16 | | - |
17 | | -platform: |
18 | | - os: linux |
19 | | - arch: amd64 |
20 | | - |
21 | | -steps: |
22 | | - - name: Download submodules |
23 | | - image: alpine/git |
24 | | - commands: |
25 | | - - git submodule update --init --recursive |
26 | | - - name: Build Hestia package and install |
27 | | - commands: |
28 | | - - ./src/hst_autocompile.sh --hestia --install '~localsrc' |
29 | | - - name: Reset Web templates |
30 | | - commands: |
31 | | - - rm /usr/local/hestia/data/templates/web/nginx/php-fpm/*.* |
32 | | - - rm /usr/local/hestia/data/templates/web/nginx/*.* |
33 | | - - rm /usr/local/hestia/data/templates/web/apache2/php-fpm/*.* |
34 | | - - rm /usr/local/hestia/data/templates/web/apache2/*.* |
35 | | - - rm /usr/local/hestia/data/templates/web/php-fpm/*.* |
36 | | - - /usr/local/hestia/bin/v-update-web-templates |
37 | | - - name: Run system / user tests |
38 | | - commands: |
39 | | - - bats ./test/test.bats |
40 | | - - name: Run restore tests |
41 | | - commands: |
42 | | - - bats ./test/restore.bats |
43 | | - - name: Run config tests |
44 | | - commands: |
45 | | - - bats ./test/config-tests.bats |
46 | | - |
47 | | -trigger: |
48 | | - event: [pull_request, push] |
49 | | - ref: |
50 | | - - refs/heads/release |
51 | | - - refs/heads/prerelease |
52 | | - - refs/heads/servicing |
53 | | - - refs/heads/tests/* |
54 | | - - refs/heads/main |
55 | | - - refs/pull/*/head |
56 | | - |
57 | | ---- |
58 | | -kind: pipeline |
59 | | -type: ssh |
60 | | -name: Debian | Nginx |
61 | | - |
62 | | -concurrency: |
63 | | - limit: 1 |
64 | | - |
65 | | -server: |
66 | | - host: |
67 | | - from_secret: server_address2 |
68 | | - user: |
69 | | - from_secret: username |
70 | | - ssh_key: |
71 | | - from_secret: ssh_key |
| 3 | +type: docker |
| 4 | +name: Push to beta atp server |
72 | 5 |
|
73 | 6 | platform: |
74 | 7 | os: linux |
75 | 8 | arch: amd64 |
76 | 9 |
|
77 | 10 | steps: |
78 | | - - name: Download submodules |
79 | | - image: alpine/git |
80 | | - commands: |
81 | | - - git submodule update --init --recursive |
82 | | - - name: Build Hestia package install |
83 | | - commands: |
84 | | - - ./src/hst_autocompile.sh --hestia --install '~localsrc' |
85 | | - - name: Reset Web templates |
86 | | - commands: |
87 | | - - rm /usr/local/hestia/data/templates/web/nginx/php-fpm/*.* |
88 | | - - rm /usr/local/hestia/data/templates/web/nginx/*.* |
89 | | - - rm /usr/local/hestia/data/templates/web/apache2/php-fpm/*.* |
90 | | - - rm /usr/local/hestia/data/templates/web/apache2/*.* |
91 | | - - rm /usr/local/hestia/data/templates/web/php-fpm/*.* |
92 | | - - /usr/local/hestia/bin/v-update-web-templates |
93 | | - - name: Run system / user tests |
94 | | - commands: |
95 | | - - bats ./test/test.bats |
96 | | - - name: Run restore tests |
| 11 | + - name: Build JS/CSS |
| 12 | + image: node:current-slim |
97 | 13 | commands: |
98 | | - - bats ./test/restore.bats |
99 | | - - name: Run config tests |
| 14 | + - npm ci --ignore-scripts |
| 15 | + - npm run build |
| 16 | + - name: Build |
| 17 | + image: debian:bookworm |
100 | 18 | commands: |
101 | | - - bats ./test/config-tests.bats |
| 19 | + - ln -snf /etc/localtime && echo CET > /etc/timezone |
| 20 | + - ./src/hst_autocompile.sh --dontinstalldeps --hestia --debug --cross --noinstall --keepbuild '~localsrc' |
| 21 | + - mkdir -p ./hestia/ |
| 22 | + - mv /tmp/hestiacp-src/deb/*.deb ./hestia/ |
102 | 23 |
|
103 | 24 | trigger: |
104 | | - event: [pull_request, push] |
105 | | - ref: |
106 | | - - refs/heads/release |
107 | | - - refs/heads/prerelease |
108 | | - - refs/heads/servicing |
109 | | - - refs/heads/tests/* |
110 | | - - refs/heads/main |
111 | | - - refs/pull/*/head |
| 25 | + event: [push] |
112 | 26 |
|
113 | 27 | --- |
114 | 28 | kind: pipeline |
|
0 commit comments