-
Notifications
You must be signed in to change notification settings - Fork 0
/
.estafette.yaml
173 lines (155 loc) · 5.41 KB
/
.estafette.yaml
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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
builder:
track: dev
labels:
app-group: estafette-ci
team: estafette-team
language: helm
version:
semver:
major: 1
minor: 5
patch: 11
labelTemplate: '{{branch}}-{{auto}}'
releaseBranch: 1.5.11
stages:
lint-and-package:
parallelStages:
lint-helm-chart:
image: extensions/helm:dev
action: lint
package-helm-chart:
image: extensions/helm:dev
action: package
test-helm-chart:
services:
- name: kubernetes
image: bsycorp/kind:latest-1.23
readiness:
path: /kubernetes-ready
port: 10080
timeoutSeconds: 120
image: extensions/helm:dev
action: test
timeout: 900s
values: |-
api:
baseHost: ci-test.estafette.io
integrationsHost: ci-test-integration.estafette.io
image:
credentials:
registry: docker.io
username: estafette.secret(mITm_O9WNW4xh5nx.Kg69U81Foi44-zavlF_LTQwyLwocgEbd2nayC0vR0g==.ORWoTdFf7yQ143Cmg07YzWbiXhmUlol4p5SYfbdNl0dtz86mYknh7LUlGweWnCA0Zg==)
password: estafette.secret(nA7jGNDWG5ImOFQO.epJBszHzbJv2Vr0cTi9e8yAYtm5uZD7BOt9sxl2s0GB97Z9OrOtmJkKX3Z3k47DXeDP6cg==.eZ9WuXXyc5q0A6RMCHYLpHBc7zMlOC6Ya9881xH_z2UnMNbtJ2xu3Plp-jPLWAqbhg==)
extraSecrets:
- key: ssh
mountPath: /ssh
b64encoded: true
data:
git-sync-rsa: aGVsbG8K
- key: iam
mountPath: /iam
data:
service-account.json: aXMgaXQgbWUgeW91IGFyZSBsb29raW5nIGZvcgo=
extraConfigmaps:
- key: templates
mountPath: /templates
data: |
manifest-docker.tmpl: |
labels:
container: {{.ContainerName}}
team: {{.TeamName}}
language: docker
web:
image:
credentials:
registry: docker.io
username: estafette.secret(mITm_O9WNW4xh5nx.Kg69U81Foi44-zavlF_LTQwyLwocgEbd2nayC0vR0g==.ORWoTdFf7yQ143Cmg07YzWbiXhmUlol4p5SYfbdNl0dtz86mYknh7LUlGweWnCA0Zg==)
password: estafette.secret(nA7jGNDWG5ImOFQO.epJBszHzbJv2Vr0cTi9e8yAYtm5uZD7BOt9sxl2s0GB97Z9OrOtmJkKX3Z3k47DXeDP6cg==.eZ9WuXXyc5q0A6RMCHYLpHBc7zMlOC6Ya9881xH_z2UnMNbtJ2xu3Plp-jPLWAqbhg==)
extraSecrets:
- key: ssh
mountPath: /ssh
b64encoded: true
data:
git-sync-rsa: aGVsbG8K
- key: iam
mountPath: /iam
data:
service-account.json: aXMgaXQgbWUgeW91IGFyZSBsb29raW5nIGZvcgo=
extraConfigmaps:
- key: templates
mountPath: /templates
data: |
manifest-docker.tmpl: |
labels:
container: {{.ContainerName}}
team: {{.TeamName}}
language: docker
db-migrator:
image:
credentials:
registry: docker.io
username: estafette.secret(mITm_O9WNW4xh5nx.Kg69U81Foi44-zavlF_LTQwyLwocgEbd2nayC0vR0g==.ORWoTdFf7yQ143Cmg07YzWbiXhmUlol4p5SYfbdNl0dtz86mYknh7LUlGweWnCA0Zg==)
password: estafette.secret(nA7jGNDWG5ImOFQO.epJBszHzbJv2Vr0cTi9e8yAYtm5uZD7BOt9sxl2s0GB97Z9OrOtmJkKX3Z3k47DXeDP6cg==.eZ9WuXXyc5q0A6RMCHYLpHBc7zMlOC6Ya9881xH_z2UnMNbtJ2xu3Plp-jPLWAqbhg==)
cron-event-sender:
image:
credentials:
registry: docker.io
username: estafette.secret(mITm_O9WNW4xh5nx.Kg69U81Foi44-zavlF_LTQwyLwocgEbd2nayC0vR0g==.ORWoTdFf7yQ143Cmg07YzWbiXhmUlol4p5SYfbdNl0dtz86mYknh7LUlGweWnCA0Zg==)
password: estafette.secret(nA7jGNDWG5ImOFQO.epJBszHzbJv2Vr0cTi9e8yAYtm5uZD7BOt9sxl2s0GB97Z9OrOtmJkKX3Z3k47DXeDP6cg==.eZ9WuXXyc5q0A6RMCHYLpHBc7zMlOC6Ya9881xH_z2UnMNbtJ2xu3Plp-jPLWAqbhg==)
db:
image:
credentials:
registry: docker.io
username: estafette.secret(mITm_O9WNW4xh5nx.Kg69U81Foi44-zavlF_LTQwyLwocgEbd2nayC0vR0g==.ORWoTdFf7yQ143Cmg07YzWbiXhmUlol4p5SYfbdNl0dtz86mYknh7LUlGweWnCA0Zg==)
password: estafette.secret(nA7jGNDWG5ImOFQO.epJBszHzbJv2Vr0cTi9e8yAYtm5uZD7BOt9sxl2s0GB97Z9OrOtmJkKX3Z3k47DXeDP6cg==.eZ9WuXXyc5q0A6RMCHYLpHBc7zMlOC6Ya9881xH_z2UnMNbtJ2xu3Plp-jPLWAqbhg==)
conf:
single-node: true
statefulset:
replicas: 1
storage:
persistentVolume:
enabled: false
size: 1Gi
metrics:
imagePullSecrets:
- name: estafette-ci-api.registry
queue:
imagePullSecrets:
- name: estafette-ci-api.registry
clone-charts-repo:
image: extensions/git-clone:dev
repo: helm-charts
branch: main
publish-helm-chart:
image: extensions/helm:dev
action: publish
repoBranch: main
tag-revision:
image: bitnami/git
commands:
- git tag ${ESTAFETTE_BUILD_VERSION}
- git push origin ${ESTAFETTE_BUILD_VERSION}
when:
status == 'succeeded' &&
branch == 'main'
slack-notify:
image: extensions/slack-build-status:dev
workspace: estafette
channels:
- '#build-status'
when:
status == 'succeeded' ||
status == 'failed'
releases:
release:
stages:
clone-charts-repo:
image: extensions/git-clone:dev
repo: helm-charts
branch: main
purge-prerelease-helm-charts:
image: extensions/helm:dev
action: purge
repoBranch: main
create-github-release:
image: extensions/github-release:dev