ci(cd): 納入 gunicorn config 變更觸發
Some checks are pending
CD Pipeline / deploy (push) Waiting to run

This commit is contained in:
OoO
2026-04-30 00:20:16 +08:00
parent 1c10bf7d3d
commit d33a59d027

View File

@@ -26,6 +26,7 @@ on:
- 'scheduler.py'
- 'run_scheduler.py'
- 'run_telegram_bot.py'
- 'gunicorn.conf.py'
- 'services/**'
- 'routes/**'
- 'database/**'
@@ -81,7 +82,7 @@ jobs:
exit 0
fi
CHANGED=$(git diff --name-only HEAD~1 HEAD 2>/dev/null || echo "")
if echo "$CHANGED" | grep -qE '^(Dockerfile|requirements\.txt|docker-compose\.yml)$'; then
if echo "$CHANGED" | grep -qE '^(Dockerfile|requirements\.txt|docker-compose\.yml|gunicorn\.conf\.py)$'; then
echo "type=rebuild" >> $GITHUB_OUTPUT
echo "label=🔨 重建 Docker Image" >> $GITHUB_OUTPUT
else