mirror of
https://github.com/yeasy/docker_practice.git
synced 2026-03-11 04:14:38 +00:00
Add more content and fix format
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# 21.1 DevOps 工作流完整示例
|
||||
## 21.1 DevOps 完整工作流
|
||||
|
||||
本章将演示一个基于 Docker、Kubernetes 和 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 ./...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user