1
0
Fork 0
mirror of https://github.com/EDeev/alertbot.git synced 2026-10-07 20:49:56 +03:00

Compare commits

...

1 commit
v1.0.0 ... main

3 changed files with 4 additions and 10 deletions

View file

@ -19,17 +19,11 @@ jobs:
registry: ghcr.io registry: ghcr.io
username: ${{ github.actor }} username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }} password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/login-action@v3
with:
registry: dcr.deev.su
username: ${{ secrets.ZOT_USERNAME }}
password: ${{ secrets.ZOT_PASSWORD }}
- id: meta - id: meta
uses: docker/metadata-action@v5 uses: docker/metadata-action@v5
with: with:
images: | images: |
ghcr.io/edeev/alertbot ghcr.io/edeev/alertbot
dcr.deev.su/edeev/alertbot
tags: | tags: |
type=semver,pattern={{version}} type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}} type=semver,pattern={{major}}.{{minor}}

View file

@ -48,7 +48,7 @@ cp .env.example .env # bot token, IDs, Prometheus/Alertmanager URLs and tok
docker compose up -d docker compose up -d
``` ```
Prebuilt image: `docker pull ghcr.io/edeev/alertbot` or `docker pull dcr.deev.su/edeev/alertbot`. Prebuilt image: `docker pull ghcr.io/edeev/alertbot` or `docker pull git.deev.su/edeev/alertbot`.
## Installing without Docker ## Installing without Docker
@ -81,7 +81,7 @@ python bot.py
The bot runs on a separate VPS as a systemd unit. Prometheus and Alertmanager live on another server The bot runs on a separate VPS as a systemd unit. Prometheus and Alertmanager live on another server
behind nginx, which lets the bot in only with a token. GitHub Actions builds the Docker image on every behind nginx, which lets the bot in only with a token. GitHub Actions builds the Docker image on every
`v*` tag and publishes it to GitHub Packages and to `dcr.deev.su`. `v*` tag and publishes it to GitHub Packages and to `git.deev.su`.
## Development ## Development

View file

@ -48,7 +48,7 @@ cp .env.example .env # токен бота, ID, адреса и токен
docker compose up -d docker compose up -d
``` ```
Готовый образ: `docker pull ghcr.io/edeev/alertbot` или `docker pull dcr.deev.su/edeev/alertbot`. Готовый образ: `docker pull ghcr.io/edeev/alertbot` или `docker pull git.deev.su/edeev/alertbot`.
## Установка без Docker ## Установка без Docker
@ -81,7 +81,7 @@ python bot.py
Бот работает на отдельном VPS как systemd-юнит. Prometheus и Alertmanager стоят на другом сервере Бот работает на отдельном VPS как systemd-юнит. Prometheus и Alertmanager стоят на другом сервере
за nginx, который пускает бота только с токеном. Docker-образ собирает GitHub Actions на каждый тег за nginx, который пускает бота только с токеном. Docker-образ собирает GitHub Actions на каждый тег
`v*` и публикует в GitHub Packages и в реестр `dcr.deev.su`. `v*` и публикует в GitHub Packages и в реестр `git.deev.su`.
## Разработка ## Разработка