Merge pull request 'Update deploy script' (#180) from fix-permissions into main
Deploy / deploy (push) Successful in 1s Details

Reviewed-on: https://72.56.235.246.nip.io/gitea/romanskijdev/ruspet_portal_back/pulls/180
This commit is contained in:
romanskijdev 2026-10-13 15:00:43 +03:00
commit 0fe7e28326
1 changed files with 4 additions and 3 deletions

View File

@ -182,10 +182,11 @@ jobs:
echo "✅ System service deployed"
echo "MIGRATIONS_DEPLOYED=true" >> $GITHUB_ENV
sleep 3
if sudo /usr/bin/systemctl is-active --quiet "$MIGRATIONS_SERVICE"; then
echo "✅ System service is running"
# Check if the service FAILED, rather than if it is ACTIVE
if ! sudo /usr/bin/systemctl is-failed --quiet "$MIGRATIONS_SERVICE"; then
echo "✅ System service executed successfully"
else
echo "❌ System service failed to start"
echo "❌ System service failed during execution"
sudo /usr/bin/journalctl -u "$MIGRATIONS_SERVICE" -n 30 --no-pager
exit 1
fi