Files
JayuCloud/docs/scripts/Salon生产发布共享目录配置说明_20260901.md
T

26 lines
900 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Salon 生产发布共享目录配置
Prepare 和 Deploy 工作流通过 Runner 宿主机共享目录传递发布包,不再跨运行读取 Gitea Artifact。
## Runner 配置
在 Runner 宿主机创建目录并设置为 Runner 用户可读写:
```text
/opt/software/panel/apps/gitea/salon-release
```
在 `act_runner/config.yaml` 的 `container.options` 增加目录挂载:
```yaml
- "--volume=/opt/software/panel/apps/gitea/salon-release:/salon-release:rw"
```
修改后重启 `jayucloud-runner`。Prepare 会将包写入 `/salon-release/<release_sha>`,Deploy 使用相同 `release_sha` 读取并校验 `manifest.json`。
## 验证
1. 在 Runner 任务容器中确认 `/salon-release` 可读写。
2. 重新运行 Prepare,确认共享目录生成对应 SHA 子目录和 `manifest.json`。
3. Deploy 输入同一 `release_sha`,确认“读取已审核发布包”步骤通过。