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