知识卡片
不可变构建的晋级
构建从发布候选进入测试、集成和生产时,代码内容应保持不变,晋级表示已通过某阶段的验证。环境差异由实例配置表达,不能靠每到一个环境就编辑栈代码,否则测试的已不是最终上线的东西。发布的是同一候选构建获得批准,而非重新制作一个版本。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 构建与分发基础设施代码 · 查看原书依据
Whether infrastructure code builds are distributed in a code repository or as artifacts, each build should be treated as immutable, meaning no changes are made to the code as it progresses across environments. Some teams make a habit of editing stack code to customize it
参考来源
- 位置:《Infrastructure As Code》第15章《构建与分发基础设施代码》(来源项目:book-sources;源文件:extracted/Infrastructure As Code/_epub-src/OEBPS/ch15.html)
- 结论依据:原文在该段定义概念并解释相关过程或限制,支撑“构建从发布候选进入测试、集成和生产时,代码内容应保持不变,晋级表示已通过某阶段的验证”这一核心结论;正文的用途与边界据同小节后续论述整理。
- 原始内容:Whether infrastructure code builds are distributed in a code repository or as artifacts, each build should be treated as immutable, meaning no changes are made to the code as it progresses across environments. Some teams make a habit of editing stack code to customize it