Add more content and fix format

This commit is contained in:
Baohua Yang
2026-02-25 21:06:21 -08:00
parent dd449bc84f
commit ecab788013
119 changed files with 566 additions and 496 deletions

View File

@@ -1,4 +1,4 @@
# 21.1 DevOps 工作流完整示例
## 21.1 DevOps 完整工作流
本章将演示一个基于 DockerKubernetes Jenkins/GitLab CI 的完整 DevOps 工作流
@@ -23,7 +23,7 @@
```dockerfile
## Build stage
FROM golang:1.18 AS builder
FROM golang:1.23 AS builder
WORKDIR /app
COPY . .
RUN go build -o main .
@@ -48,7 +48,7 @@ stages:
unit_test:
stage: test
image: golang:1.18
image: golang:1.23
script:
- go test ./...

View File

@@ -1,4 +1,4 @@
# 21.6 VS Code 中使用 Docker
## 21.6 VS Code
VS Code [Dev Containers](https://code.visualstudio.com/docs/devcontainers/containers)
可以把开发环境放进容器同时保留 VS Code 的编辑补全调试体验

View File

@@ -1,4 +1,4 @@
# 第二十一章 实战案例 - Devops
# 第二十一章 实战案例 - DevOps
本章将介绍 Docker DevOps 场景下的实战案例

View File

@@ -1,4 +1,4 @@
# 21.7 本章小结
## 本章小结
本章通过一个完整的 DevOps 工作流示例串联了从代码提交自动化测试镜像构建
到部署发布的一整套实践路径