fix: only trigger Docker build on main branch and add server data volume mapping

- Workflow trigger branches reduced to main only (dev can use manual dispatch)
- Add server data volume mapping to persist Koa auth token

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
ekko
2026-04-20 19:17:06 +08:00
parent ef39a69d11
commit 4b306c3caa
2 changed files with 1 additions and 1 deletions
-1
View File
@@ -5,7 +5,6 @@ on:
push:
branches:
- main
- dev
workflow_dispatch: # 允许在 GitHub 网页端手动点击按钮触发
jobs:
+1
View File
@@ -26,6 +26,7 @@ services:
- "${PORT:-6060}:${PORT:-6060}"
volumes:
- ${HERMES_DATA_DIR:-./hermes_data}:/home/agent/.hermes
- ${HERMES_DATA_DIR:-./hermes_data}/hermes-web-ui-data:/app/dist/data
- hermes-agent-src:/opt/hermes
environment:
- PORT=${PORT:-6060}