Обновлены уведомления CI/CD с этапом Регистрация
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 18s

This commit is contained in:
poignatov
2026-02-03 15:32:14 +03:00
parent d90df473a2
commit 56da114210

View File

@@ -61,6 +61,7 @@ jobs:
echo "${{ secrets.GIT_TOKEN }}" | docker login dungeonsiege.synology.me -u ${{ secrets.GIT_USERNAME }} --password-stdin
- name: Push Docker Image
id: push
if: steps.version_check.outputs.changed == 'true'
run: |
REGISTRY="dungeonsiege.synology.me/poignatov/play-life"
@@ -90,9 +91,11 @@ jobs:
`${{ steps.version_check.outputs.commit_message }}`
Сборка: ✅
Регистрация: ⏭️
Публикация: ⏭️
- name: Deploy to Production Server
id: deploy
if: steps.version_check.outputs.changed == 'true'
uses: appleboy/ssh-action@master
with:
@@ -152,7 +155,7 @@ jobs:
$DOCKER_COMPOSE_CMD -f docker-compose.prod.yml ps
- name: Send Telegram notification (publish success)
if: success() && steps.version_check.outputs.changed == 'true'
if: steps.build.outcome == 'success' && steps.version_check.outputs.changed == 'true' && steps.push.outcome == 'success' && steps.deploy.outcome == 'success'
uses: appleboy/telegram-action@master
with:
to: ${{ secrets.TELEGRAM_TO }}
@@ -163,11 +166,26 @@ jobs:
`${{ steps.version_check.outputs.commit_message }}`
Сборка: ✅
Регистрация: ✅
Публикация: ✅
Деплой: ✅
- name: Send Telegram notification (push failure)
if: steps.build.outcome == 'success' && steps.version_check.outputs.changed == 'true' && steps.push.outcome == 'failure'
uses: appleboy/telegram-action@master
with:
to: ${{ secrets.TELEGRAM_TO }}
token: ${{ secrets.TELEGRAM_TOKEN }}
format: markdown
message: |
*play-life*
`${{ steps.version_check.outputs.commit_message }}`
Сборка: ✅
Регистрация: ❌
Публикация: ⏭️
- name: Send Telegram notification (deploy failure)
if: failure() && steps.version_check.outputs.changed == 'true'
if: steps.build.outcome == 'success' && steps.push.outcome == 'success' && steps.version_check.outputs.changed == 'true' && steps.deploy.outcome == 'failure'
uses: appleboy/telegram-action@master
with:
to: ${{ secrets.TELEGRAM_TO }}
@@ -178,11 +196,11 @@ jobs:
`${{ steps.version_check.outputs.commit_message }}`
Сборка: ✅
Публикация: ✅
Деплой: ❌
Регистрация: ✅
Публикация: ❌
- name: Send Telegram notification (failure)
if: failure()
- name: Send Telegram notification (build failure)
if: steps.build.outcome == 'failure'
uses: appleboy/telegram-action@master
with:
to: ${{ secrets.TELEGRAM_TO }}
@@ -193,4 +211,5 @@ jobs:
`${{ steps.version_check.outputs.commit_message }}`
Сборка: ❌
Публикация:
Регистрация: ⏭️
Публикация: ⏭️