Zabbix #119
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Zabbix | |
on: | |
# push: | |
# branches: | |
# - main | |
schedule: | |
- cron: "0 0 * * *" | |
jobs: | |
Zabbix: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Build project | |
run: | | |
# 这里添加你的构建命令 | |
# Zabbix-Server | |
docker pull zabbix/zabbix-server-pgsql:alpine-7.0-latest | |
docker save -o zabbix-server-pgsql-alpine-7.0-latest.tar.gz zabbix/zabbix-server-pgsql:alpine-7.0-latest | |
# Zabbix-Proxy | |
docker pull zabbix/zabbix-proxy-mysql:alpine-7.0-latest | |
docker save -o zabbix-proxy-mysql-alpine-7.0-latest.tar.gz zabbix/zabbix-proxy-mysql:alpine-7.0-latest | |
# Zabbix-Web | |
docker pull zabbix/zabbix-web-nginx-pgsql:alpine-7.0-latest | |
docker save -o zabbix-web-nginx-pgsql-alpine-7.0-latest.tar.gz zabbix/zabbix-web-nginx-pgsql:alpine-7.0-latest | |
- name: Upload Image Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: zabbix-web-nginx-pgsql | |
path: zabbix-web-nginx-pgsql-alpine-7.0-latest.tar.gz | |
- name: Upload Image Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: zabbix-server-pgsql | |
path: zabbix-server-pgsql-alpine-7.0-latest.tar.gz | |
- name: Upload Image Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: zabbix-proxy-mysql | |
path: zabbix-proxy-mysql-alpine-7.0-latest.tar.gz |