删除 Gitea Actions、Tag/Main 自动流水线和旧 Runner 配置,取消 Git 操作与发布授权的绑定。\n\n新增本地镜像发布、固定生产部署助手、digest manifest、迁移安全检查、simulation 冒烟及显式回滚流程。\n\n验证:pnpm lint、pnpm test、pnpm build、Go 全量测试、ShellCheck、Compose 配置、人工发布测试和 linux/amd64 完整栈冒烟。
19 lines
832 B
Bash
Executable File
19 lines
832 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
root=$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)
|
|
[[ $(id -u) -eq 0 ]] || { echo 'run as root on the production server' >&2; exit 1; }
|
|
|
|
install -d -m 0755 /usr/local/lib/easyai-ai-gateway-release
|
|
install -m 0755 "$root/deploy/manual/easyai-ai-gateway-release" \
|
|
/usr/local/sbin/easyai-ai-gateway-release
|
|
install -m 0644 "$root/scripts/release-manifest.mjs" \
|
|
/usr/local/lib/easyai-ai-gateway-release/release-manifest.mjs
|
|
if [[ ! -e /etc/easyai-ai-gateway-release.conf ]]; then
|
|
install -m 0600 "$root/deploy/manual/easyai-ai-gateway-release.conf.example" \
|
|
/etc/easyai-ai-gateway-release.conf
|
|
echo 'created /etc/easyai-ai-gateway-release.conf; review it before the first release'
|
|
fi
|
|
|
|
echo 'installed manual release helper; no service, timer, webhook, or watcher was enabled'
|