-
-
Notifications
You must be signed in to change notification settings - Fork 3
87 lines (79 loc) · 2.31 KB
/
test.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
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
name: Test
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4 # v4
# Remove non-installable git packages. There git-svn can not be installed
# because the image contains newer versions which do not have matching git-svn
# in enabled repositories.
- name: APT cleanup
run: sudo apt-get purge git git-man
- name: Exim
run: sudo ./configure-system
- name: Bootstrap
run: |
sudo ./bootstrap <<EOT
weblate.example.com
example
CI Weblate
https://[email protected]/123
0
TOKEN
EOT
cat /etc/weblate-bootstrap
- name: Exim
run: sudo ./install-exim
- name: PostgreSQL
run: sudo ./install-posgtresql
- name: Weblate
run: sudo ./install-weblate --nocert
- name: Munin
run: sudo ./install-munin
- name: Upgrade
run: sudo ./upgrade-weblate --nodiff
- name: Upgrade (lazy restart)
run: sudo ./upgrade-weblate --nodiff --lazy-restart
- name: Migrate
run: sudo ./migrate-docker --nomail
- name: Logs
if: always()
run: |
cd /home/weblate/weblate
docker compose logs
docker:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4 # v4
# Remove non-installable git packages. There git-svn can not be installed
# because the image contains newer versions which do not have matching git-svn
# in enabled repositories.
- name: APT cleanup
run: sudo apt-get purge git git-man
- name: Exim
run: sudo ./configure-system
- name: Bootstrap
run: |
sudo ./bootstrap <<EOT
weblate.example.com
example
CI Weblate
https://[email protected]/123
0
TOKEN
EOT
cat /etc/weblate-bootstrap
- name: Docker
run: sudo ./install-docker
- name: Exim
run: sudo ./install-exim
- name: Weblate
run: sudo ./install-weblate-docker --nocert --nomail
- name: Upgrade
run: sudo ./upgrade-weblate
- name: Logs
if: always()
run: |
cd /home/weblate/weblate
docker compose logs