docs: 补充流水线运行与 runner 状态记录
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 7s
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 7s
This commit is contained in:
@@ -63,9 +63,9 @@ $ ./mvnw -B clean verify
|
|||||||
|
|
||||||
### 5. Gitea 仓库与流水线触发
|
### 5. Gitea 仓库与流水线触发
|
||||||
|
|
||||||
- 本地 `git init -b master`,提交 `5c7ee32`(`feat: 创建 Spring Boot 4 项目及 Gitea/GitLab CI/CD 流水线`)。
|
- 本地 `git init -b master`,共 3 次提交:`5c7ee32`(工程+流水线)、`a0d05c3`(过程与复盘)、`80cbd82`(workflow 中 registry 改用 shell 环境变量)。
|
||||||
- 推送至 `https://gitea-verify.lightjob.cn/poc/springboot-cici-demo`(master),Gitea 侧 secret 扫描提示 `no secrets found`。
|
- 推送至 `https://gitea-verify.lightjob.cn/poc/springboot-cici-demo`(master),Gitea 侧 commit/push secret 扫描均提示 `no secrets found`。
|
||||||
- Gitea Actions 自动生成 run #1:`cicd.yaml@refs/heads/master`,event=push,job=`build-and-push`,当前状态 `queued`(见「复盘」中的 runner 说明)。
|
- 每次 push 均触发 Gitea Actions:`cicd.yaml@refs/heads/master`,event=push,job=`build-and-push`;早期 run 因新提交入队被 cancelled,最近一次 run 状态 `queued`(见「复盘」中的 runner 说明)。
|
||||||
- 已通过 Gitea API 配置仓库 Secrets:`REGISTRY_USERNAME`、`REGISTRY_PASSWORD`(仅名称入库,值为任务清单提供的阿里云仓库账号;仓库代码中无任何明文凭据)。
|
- 已通过 Gitea API 配置仓库 Secrets:`REGISTRY_USERNAME`、`REGISTRY_PASSWORD`(仅名称入库,值为任务清单提供的阿里云仓库账号;仓库代码中无任何明文凭据)。
|
||||||
|
|
||||||
### 6. 本地镜像构建验证(未完成,环境受限)
|
### 6. 本地镜像构建验证(未完成,环境受限)
|
||||||
@@ -93,6 +93,6 @@ $ ./mvnw -B clean verify
|
|||||||
|
|
||||||
### 待办 / 后续验证
|
### 待办 / 后续验证
|
||||||
|
|
||||||
1. **Gitea Runner**:run #1 已排队但无 runner 接单。需在 Gitea 管理员页面生成 Runner token,并在 `47.131.161.231`(Docker 宿主机)注册 `act_runner`,标签包含 `ubuntu-latest` 且宿主可执行 `docker`;注册后重新运行该 workflow。本机 SSH 免密不可用、任务清单未给出服务器密码,故本次未代注册。
|
1. **Gitea Runner**:最新 run 已排队但无 runner 接单。需在 Gitea 管理员页面生成 Runner token,并在 `47.131.161.231`(Docker 宿主机)注册 `act_runner`,标签包含 `ubuntu-latest` 且宿主可执行 `docker`;注册后重新运行该 workflow。本机 SSH 免密连接被拒,用任务清单中密码尝试连接 root 亦被拒,故本次未代注册。
|
||||||
2. **GitLab 侧**:如启用 `.gitlab-ci.yml`,在 GitLab 项目 → Settings → CI/CD → Variables 添加掩码变量 `REGISTRY_USERNAME`、`REGISTRY_PASSWORD`。
|
2. **GitLab 侧**:如启用 `.gitlab-ci.yml`,在 GitLab 项目 → Settings → CI/CD → Variables 添加掩码变量 `REGISTRY_USERNAME`、`REGISTRY_PASSWORD`。
|
||||||
3. **首次成功构建后**:在阿里云镜像仓库 `registry.cn-hangzhou.aliyuncs.com/lightjob/springboot-cici-demo` 检查短 SHA 与 `latest` 两个 tag;可用 `docker run -p 8080:8080 <镜像>` 冒烟验证。
|
3. **首次成功构建后**:在阿里云镜像仓库 `registry.cn-hangzhou.aliyuncs.com/lightjob/springboot-cici-demo` 检查短 SHA 与 `latest` 两个 tag;可用 `docker run -p 8080:8080 <镜像>` 冒烟验证。
|
||||||
|
|||||||
Reference in New Issue
Block a user