feat: add validation for production SSH credentials in deployment workflow
Chore App Build, Test, and Push Docker Images / build-and-push (push) Successful in 4m25s

This commit is contained in:
2026-10-27 15:44:41 -04:00
parent 6946ddf7e5
commit cd3562babb
+9
View File
@@ -353,6 +353,15 @@ jobs:
exit 1
fi
# Validate that MONGO_URI is present (falling back to previous .env if available)
if [ -z "${{ secrets.MONGO_URI }}" ]; then
echo "ERROR: MONGO_URI secret is missing or empty in Gitea repository secrets."
exit 1
fi
else
echo "MONGO_URI successfully loaded from Gitea secrets."
fi
cat > .env << EOF
FRONTEND_URL=${{ secrets.PROD_FRONTEND_URL }}
BACKEND_HOST_PORT=${{ secrets.PROD_BACKEND_HOST_PORT }}