clouddreamai-cicd-setup 1.5.11 → 1.5.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clouddreamai-cicd-setup",
3
- "version": "1.5.11",
3
+ "version": "1.5.13",
4
4
  "description": "CloudDreamAI GitLab CI/CD 自动配置工具 - 支持 NestJS/Vue/React 项目的一键 CI/CD 配置",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -109,7 +109,12 @@ configure_ssl() {
109
109
  # 安装 acme.sh(如果没有)
110
110
  if [ ! -f ~/.acme.sh/acme.sh ]; then
111
111
  echo "安装 acme.sh..."
112
- curl https://get.acme.sh | sh -s email=$EMAIL
112
+ # 使用 gitee 镜像加速(国内网络友好)
113
+ git clone --depth 1 https://gitee.com/neilpang/acme.sh.git /tmp/acme.sh 2>/dev/null || \
114
+ git clone --depth 1 https://github.com/acmesh-official/acme.sh.git /tmp/acme.sh
115
+ cd /tmp/acme.sh && ./acme.sh --install -m $EMAIL
116
+ cd - > /dev/null
117
+ rm -rf /tmp/acme.sh
113
118
  source ~/.bashrc 2>/dev/null || true
114
119
  fi
115
120