mirror of
https://github.com/yeasy/docker_practice.git
synced 2026-08-10 08:27:25 +00:00
fix(ci): harden publishing and validate examples
This commit is contained in:
@@ -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。以下示例展示了多阶段构建 + 登录 + 推送的完整流程:
|
||||
|
||||
Reference in New Issue
Block a user