feat: implement centralized versioning v1.0.0
Deploy Telegram Bot / build-and-push (push) Successful in 25s
Deploy Telegram Bot / deploy (push) Successful in 9s

This commit is contained in:
2026-04-17 16:17:51 +03:00
parent 862cc38309
commit 5de3891966
3 changed files with 13 additions and 7 deletions
+10 -5
View File
@@ -5,6 +5,9 @@ on:
branches:
- main
env:
VERSION: 1.0.0
jobs:
# ЧАСТЬ 1: Собираем образы и кладем в Gitea (чтобы делиться с ребятами)
build-and-push:
@@ -26,7 +29,9 @@ jobs:
context: .
file: src/GmRelay.Bot/Dockerfile
push: true
tags: git.codeanddice.ru/toutsu/gmrelay-bot:latest
tags: |
git.codeanddice.ru/toutsu/gmrelay-bot:latest
git.codeanddice.ru/toutsu/gmrelay-bot:${{ env.VERSION }}
labels: |
org.opencontainers.image.source=https://git.codeanddice.ru/${{ gitea.repository }}
@@ -36,7 +41,9 @@ jobs:
context: .
file: src/GmRelay.Web/Dockerfile
push: true
tags: git.codeanddice.ru/toutsu/gmrelay-web:latest
tags: |
git.codeanddice.ru/toutsu/gmrelay-web:latest
git.codeanddice.ru/toutsu/gmrelay-web:${{ env.VERSION }}
labels: |
org.opencontainers.image.source=https://git.codeanddice.ru/${{ gitea.repository }}
@@ -59,10 +66,8 @@ jobs:
# Авторизуемся локальным докером в нашей Gitea
docker login git.codeanddice.ru/ -u toutsu -p ${{ secrets.GIT_TOKEN }}
# Так как раннер на том же сервере, образ уже закэширован,
# но pull гарантирует, что compose подхватит именно свежий latest-тег.
# Pull гарантирует, что мы получили нужную версию.
docker compose pull bot web
# Запускаем! Флаг -d оставит их работать в фоне.
# БД не перезапустится, так как её образ не менялся.
docker compose up -d