forked from zabbix/community-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
91 lines (81 loc) · 2.45 KB
/
check_templates.yaml
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
name: Template check
on:
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
services:
postgres-server_500:
image: postgres
env:
POSTGRES_DB: zabbix
POSTGRES_USER: zabbix
POSTGRES_PASSWORD: zabbix
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
zabbix-server_500:
image: zabbix/zabbix-server-pgsql:5.0-alpine-latest
env:
DB_SERVER_HOST: postgres-server_500
POSTGRES_DB: zabbix
POSTGRES_USER: zabbix
POSTGRES_PASSWORD: zabbix
zabbix-web:
image: zabbix/zabbix-web-nginx-pgsql:5.0-alpine-latest
ports:
- "8050:8080"
env:
DB_SERVER_HOST: postgres-server_500
POSTGRES_DB: zabbix
POSTGRES_USER: zabbix
POSTGRES_PASSWORD: zabbix
PHP_TZ: Europe/Riga
postgres-server_540:
image: postgres
env:
POSTGRES_DB: zabbix
POSTGRES_USER: zabbix
POSTGRES_PASSWORD: zabbix
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
zabbix-server_540:
image: zabbix/zabbix-server-pgsql:5.4-alpine-latest
env:
DB_SERVER_HOST: postgres-server_540
POSTGRES_DB: zabbix
POSTGRES_USER: zabbix
POSTGRES_PASSWORD: zabbix
zabbix-web_540:
image: zabbix/zabbix-web-nginx-pgsql:5.4-alpine-latest
ports:
- "8054:8080"
env:
DB_SERVER_HOST: postgres-server_540
POSTGRES_DB: zabbix
POSTGRES_USER: zabbix
POSTGRES_PASSWORD: zabbix
PHP_TZ: Europe/Riga
steps:
- uses: actions/checkout@v2
- name: Wait for Zabbix API
run: |
python -m pip install py-zabbix xmltodict xmlformatter ruamel.yaml
./.github/workflows/check.py
- name: Check templates
run: |
./.github/workflows/check_templates.py
- name: Commit results
run: |
git config --global user.email "[email protected]"
git config --global user.name "Action Bot"
git add --all
git commit -m 'Automatic fixed template' || echo "No changes to commit"
git push origin || echo "No changes to commit"