-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathskaffold.yaml
More file actions
138 lines (129 loc) · 3.14 KB
/
skaffold.yaml
File metadata and controls
138 lines (129 loc) · 3.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
apiVersion: skaffold/v2beta13
kind: Config
metadata:
name: go
requires:
- path: ../integration
activeProfiles:
- name: integration
activatedBy: [integration]
build:
local:
useBuildkit: true
artifacts:
- image: skaffold-debug-go
context: helper-image
custom:
buildCommand: ../../hack/buildx.sh
test:
- image: skaffold-debug-go
structureTests: [structure-tests-go.yaml]
deploy:
logs:
prefix: auto
kubectl:
manifests: [] # overwritten in integration profile
profiles:
# local: never push to remote registries
- name: local
build:
local:
push: false
# integration: set of `skaffold debug`-like integration tests
- name: integration
patches:
- op: add
path: /build/artifacts/-
value:
image: go118app
context: test/goapp
docker:
buildArgs:
GOVERSION: '1.18'
- op: add
path: /build/artifacts/-
value:
image: go119app
context: test/goapp
docker:
buildArgs:
GOVERSION: '1.19'
- op: add
path: /build/artifacts/-
value:
image: go120app
context: test/goapp
docker:
buildArgs:
GOVERSION: '1.20'
- op: add
path: /build/artifacts/-
value:
image: go121app
context: test/goapp
docker:
buildArgs:
GOVERSION: '1.21'
- op: add
path: /build/artifacts/-
value:
image: go122app
context: test/goapp
docker:
buildArgs:
GOVERSION: '1.22'
- op: add
path: /build/artifacts/-
value:
image: go123app
context: test/goapp
docker:
buildArgs:
GOVERSION: '1.23'
- op: add
path: /build/artifacts/-
value:
image: go124app
context: test/goapp
docker:
buildArgs:
GOVERSION: '1.24'
- op: add
path: /build/artifacts/-
value:
image: go125app
context: test/goapp
docker:
buildArgs:
GOVERSION: '1.25'
deploy:
kubectl:
manifests:
- test/k8s-test-go118.yaml
- test/k8s-test-go119.yaml
- test/k8s-test-go120.yaml
- test/k8s-test-go121.yaml
- test/k8s-test-go122.yaml
- test/k8s-test-go123.yaml
- test/k8s-test-go124.yaml
- test/k8s-test-go125.yaml
# release: pushes images to production with :latest
- name: release
build:
local:
push: true
tagPolicy:
sha256: {}
# deprecated-names: use short (deprecated) image names: images were
# prefixed with `skaffold-debug-` so they were more easily distinguished
# from other images with similar names.
- name: deprecated-names
patches:
- op: replace
path: /build/artifacts/0/image
from: skaffold-debug-go
value: go
- op: replace
path: /test/0/image
from: skaffold-debug-go
value: go