From 79074a85377317c93c707debddf22021614a71e8 Mon Sep 17 00:00:00 2001 From: chenxing Date: Tue, 8 Sep 2026 11:08:05 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E8=A7=A6=E5=8F=91=E5=88=86=E6=94=AF?= =?UTF-8?q?=E6=94=B9=E4=B8=BA=20main=EF=BC=88=E5=AF=B9=E9=BD=90=20projman?= =?UTF-8?q?=20=E9=BB=98=E8=AE=A4=E5=88=86=E6=94=AF=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 517fe3a..e9ba061 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -1,12 +1,12 @@ name: ci-bschclass-service # 后端标准化 CI:maven 构建 jar -> docker build -> 推 Nexus docker-hosted -# 触发:push 到 master(本仓库默认分支,代码在根目录)/ 手动 Run workflow +# 触发:push 到 main(本仓库默认分支,代码在根目录)/ 手动 Run workflow # 依赖仓库 Actions Secrets:NEXUS_USER / NEXUS_PASSWORD(ci-docker 账号,仅 docker-hosted 推送权) # 中间件密码(redis/mysql/rabbitmq)由 Nacos application-infra.yaml 注入,无需 Secret,也不注入容器 env on: push: - branches: [master] + branches: [main] workflow_dispatch: inputs: tag: @@ -32,10 +32,10 @@ jobs: - name: Install git (alpine) run: apk add --no-cache git - # 内网 Gitea 无法访问 github.com 拉取 actions/checkout,改为直接 clone 本仓库(master 分支) + # 内网 Gitea 无法访问 github.com 拉取 actions/checkout,改为直接 clone 本仓库(main 分支) - name: Checkout (manual, internal Gitea) run: | - git clone --depth 1 --branch master http://192.168.10.160:3000/${GITHUB_REPOSITORY}.git /tmp/src + git clone --depth 1 --branch main http://192.168.10.160:3000/${GITHUB_REPOSITORY}.git /tmp/src cp -a /tmp/src/. . rm -rf /tmp/src