Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

CI/CD: image variants and the cache warm now run in one GitLab job

未关闭 适合新手
#228 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
62/100
Issue 类型
文档
描述清晰度
描述清楚
活跃度
活跃
技术栈
gitlab, shell

调研方向

阅读 bin/devops/k8s.sh 中的 image_variants_and_warm 函数,并查看 issue 中的 GitLab 任务说明,以确认合并后的任务名称。然后更新 content/6.deployment/3.ci-cd.md 第 246 行和第 268 行,将分开的 variants 和 warm 任务名称替换为合并后的任务 image variants and warm <track>。检查 content/6.deployment/4.variables.md 第 376 行的措辞。当三个页面都描述每个 track 只有一个任务时即完成;发布链接需等待模板发布后再更新。

由索引模型根据 Issue 内容生成。

描述

From components-web-app/components-web-app#160 (commit 5f987be09ccf7ecfda261be61662020f7d72ea67, in the template's Unreleased section, so the next release after 2.0.0-alpha.30).

On GitLab, the image variants <track> and warm cache <track> jobs are now one job per track, image variants and warm <track> (the image_variants_and_warm function in bin/devops/k8s.sh). A separate warm job waited about 50 s for a runner after every deploy.

  • It runs the variants first and then the warm, in the same order as before (the warm must never come first, #153).
  • Each half keeps its switch: CWA_CI_IMAGE_VARIANTS_* and CWA_CI_WARM_CACHE_*, with production on unless "false" and the other tracks off unless "true". The job runs when either is on.
  • If one half fails, the other still runs. Either failure fails the job, which is allow_failure, so a live deploy is never marked failed.
  • The performance audit <track> jobs now needs: the combined job.
  • GitHub is unchanged: its steps already run one after another in the same job.

Pages to update:

  • content/6.deployment/3.ci-cd.md:246: lists image variants review/staging/canary/production as their own jobs.
  • content/6.deployment/3.ci-cd.md:268: says the warm runs "as its own job" and lists the warm cache <track> jobs.
  • Check content/6.deployment/4.variables.md:376 (CWA_CI_PRODUCTION_DISABLED removes "image variants, cache warm … jobs"); the wording can stay, but there's now one job for both.
  • Add the release link once the template version is released.

Upgrade note for downstream projects: copy .gitlab-ci.yml and bin/devops/k8s.sh. A project job that needs: either old job name must use the new name.

主要语言
Vue
星标
0
派生
0
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

components-web-app/docs 的其他 Issue

查看 components-web-app/docs 的全部 Issue

相似的 Issue

更多 DevOps Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。