铸渊: 更新MCP部署工作流 - 自动刷新access-key
This commit is contained in:
parent
809aede181
commit
af48969d59
@ -90,6 +90,13 @@ jobs:
|
||||
MCP_DIR="/data/guanghulab/repo/server/mcp-server"
|
||||
mkdir -p /data/guanghulab/mcp-server /data/guanghulab/.runtime/logs
|
||||
|
||||
# 更新 MCP 访问密钥
|
||||
if [ -n "$ZY_REPO_TOKEN" ]; then
|
||||
echo "$ZY_REPO_TOKEN" > /data/guanghulab/mcp-server/.access-key
|
||||
chmod 600 /data/guanghulab/mcp-server/.access-key
|
||||
echo "✅ MCP 访问密钥已更新"
|
||||
fi
|
||||
|
||||
# 注入 Gitea 令牌
|
||||
if [ -n "$ZY_REPO_TOKEN" ]; then
|
||||
sed -i "s/GITEA_TOKEN: ''/GITEA_TOKEN: '$ZY_REPO_TOKEN'/" "$MCP_DIR/ecosystem.config.js"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user