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:
@@ -5,7 +5,6 @@ on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- dev
|
||||
workflow_dispatch: # 允许在 GitHub 网页端手动点击按钮触发
|
||||
|
||||
jobs:
|
||||
|
||||
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user