fix(ci): harden publishing and validate examples

This commit is contained in:
yeasy
2026-07-10 19:29:30 -07:00
parent 8eabe30dc2
commit daa6661b2b
26 changed files with 27456 additions and 171 deletions
+2
View File
@@ -34,6 +34,8 @@ jobs:
```
该示例会在 GitHub Actions 中构建当前仓库的 Docker 镜像不推送到 registry
仓库还提供一份经 `actionlint` 校验并将 `checkout` 固定到完整 commit SHA [可执行工作流示例](../examples/validated/github-actions/validate.yml)为了让正文突出结构下面较长的教学片段仍用主版本 tag生产工作流应采用完整 SHA
### 21.2.2 构建并推送到 Registry
实际项目中通常需要在 CI 中构建镜像并推送到容器 Registry以下示例展示了多阶段构建 + 登录 + 推送的完整流程