This repository has been archived by the owner on Apr 8, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 70
/
jenkins-x.yml
218 lines (203 loc) · 7.35 KB
/
jenkins-x.yml
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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
buildPack: none
pipelineConfig:
pipelines:
pullRequest:
pipeline:
agent:
image: gcr.io/kaniko-project/executor
stages:
- name: CI
environment:
- name: GIT_COMMITTER_EMAIL
value: jenkins-x@googlegroups.com
- name: GIT_AUTHOR_EMAIL
value: jenkins-x@googlegroups.com
- name: GIT_AUTHOR_NAME
value: jenkins-x-bot
- name: GIT_COMMITTER_NAME
value: jenkins-x-bot
- name: BASE_WORKSPACE
value: /workspace/source
- name: HELM_HOME
value: /builder/home/.helm
- name: GOPATH
value: /workspace/go
- name: GOPROXY
value: http://jenkins-x-athens-proxy
- name: GOOGLE_APPLICATION_CREDENTIALS
value: /builder/home/kaniko-secret.json
steps:
- image: jenkinsxio/jx
command: jx
args:
- step
- credential
- -s
- kaniko-secret
- -k
- kaniko-secret
- -f
- /builder/home/kaniko-secret.json
- name: init-helm
image: alpine/helm:2.12.3
command: helm
args:
- init
- --client-only
- name: copy
image: busybox
command: mkdir
args:
- -p
- /workspace/go/src/github.com/jenkins-x/exposecontroller
- "&&"
- cp
- -R
- "./"
- /workspace/go/src/github.com/jenkins-x/exposecontroller
- name: build
image: gcr.io/jenkinsxio/builder-go
# the gh-release binary is needed when releasing and is missing in the official image below
#image: docker.io/golang:1.11.5
command: make
args:
- "out/exposecontroller-linux-amd64"
dir: /workspace/go/src/github.com/jenkins-x/exposecontroller
- name: test
image: docker.io/golang:1.11.5
command: make
args:
- test
dir: /workspace/go/src/github.com/jenkins-x/exposecontroller
- name: build-and-push-image
image: gcr.io/kaniko-project/executor
command: /kaniko/executor
args:
- --dockerfile=/workspace/go/src/github.com/jenkins-x/exposecontroller/Dockerfile
- --destination=gcr.io/jenkinsxio/exposecontroller:${inputs.params.version}
- --context=/workspace/go/src/github.com/jenkins-x/exposecontroller
- --cache-dir=/workspace
- name: test-charts
image: gcr.io/jenkinsxio/builder-go
command: make
args:
- build
dir: /workspace/go/src/github.com/jenkins-x/exposecontroller/charts/exposecontroller
- name: helm-lint
image: alpine/helm:2.12.3
command: helm
args:
- template
- "."
dir: /workspace/go/src/github.com/jenkins-x/exposecontroller/charts/exposecontroller
release:
pipeline:
agent:
image: gcr.io/kaniko-project/executor
stages:
- name: release
environment:
- name: GIT_COMMITTER_EMAIL
value: jenkins-x@googlegroups.com
- name: GIT_AUTHOR_EMAIL
value: jenkins-x@googlegroups.com
- name: GIT_AUTHOR_NAME
value: jenkins-x-bot
- name: GIT_COMMITTER_NAME
value: jenkins-x-bot
- name: BASE_WORKSPACE
value: /workspace/source
- name: HELM_HOME
value: /builder/home/.helm
- name: GOPATH
value: /workspace/go
- name: GOPROXY
value: http://jenkins-x-athens-proxy
- name: GOOGLE_APPLICATION_CREDENTIALS
value: /builder/home/kaniko-secret.json
steps:
- image: jenkinsxio/jx
command: jx
args:
- step
- credential
- -s
- kaniko-secret
- -k
- kaniko-secret
- -f
- /builder/home/kaniko-secret.json
- name: init-helm
image: alpine/helm:2.12.3
command: helm
args:
- init
- --client-only
- image: jenkinsxio/jx
command: jx
args:
- step
- credential
- -s
- knative-git-user-pass
- -k
- password
- -f
- /builder/home/git-token
- image: jenkinsxio/jx
command: jx
args:
- step
- credential
- -s
- jenkins-x-chartmuseum
- -k
- BASIC_AUTH_USER
- -f
- /builder/home/basic-auth-user
- image: jenkinsxio/jx
command: jx
args:
- step
- credential
- -s
- jenkins-x-chartmuseum
- -k
- BASIC_AUTH_PASS
- -f
- /builder/home/basic-auth-pass
- name: copy
image: busybox
command: mkdir
args:
- -p
- /workspace/go/src/github.com/jenkins-x/exposecontroller
- "&&"
- cp
- -R
- "./"
- /workspace/go/src/github.com/jenkins-x/exposecontroller
- name: release
image: gcr.io/jenkinsxio/builder-go
command: make
args:
- release
dir: /workspace/go/src/github.com/jenkins-x/exposecontroller
- name: build-and-push-image
image: gcr.io/kaniko-project/executor
command: /kaniko/executor
args:
- --dockerfile=/workspace/go/src/github.com/jenkins-x/exposecontroller/Dockerfile
- --destination=gcr.io/jenkinsxio/exposecontroller:${inputs.params.version}
- --context=/workspace/go/src/github.com/jenkins-x/exposecontroller
- --cache-dir=/workspace
- name: release-charts
image: gcr.io/jenkinsxio/builder-go
command: make
args:
- release
dir: /workspace/go/src/github.com/jenkins-x/exposecontroller/charts/exposecontroller
- name: update-bot
image: gcr.io/jenkinsxio/builder-jx
command: ./scripts/update-bot.sh
dir: /workspace/go/src/github.com/jenkins-x/exposecontroller