ci: 触发分支改为 main(对齐 projman 默认分支)
ci-bschclass-service / build-and-push (push) Failing after 21s

This commit is contained in:
chenxing
2026-09-08 11:08:05 +08:00
parent b7192bd103
commit 79074a8537
+4 -4
View File
@@ -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