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 4
/
Copy pathjenkins-x.yml
149 lines (144 loc) · 5.38 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
buildPack: none
pipelineConfig:
pipelines:
pullRequest:
pipeline:
agent:
image: gcr.io/kaniko-project/executor:debug-v1.0.0
options:
volumes:
- name: kaniko-secret
secret:
secretName: kaniko-secret
items:
- key: kaniko-secret
path: kaniko/kaniko-secret.json
containerOptions:
volumeMounts:
- name: kaniko-secret
mountPath: /secrets
resources:
limits:
memory: 24Gi
requests:
memory: 24Gi
environment:
- name: PUSH_LATEST
value: "false"
- name: GOOGLE_APPLICATION_CREDENTIALS
value: /secrets/kaniko/kaniko-secret.json
- name: GIT_COMMITTER_EMAIL
value: [email protected]
- name: GIT_COMMITTER_NAME
value: jenkins-x-bot
- name: GIT_AUTHOR_EMAIL
value: [email protected]
- name: GIT_AUTHOR_NAME
value: jenkins-x-bot
stages:
- name: build-and-push
steps:
# cache base images
- name: warm-cache
image: gcr.io/kaniko-project/warmer
command: /kaniko/warmer
args:
- --cache-dir=/workspace
- --image=gcr.io/jenkinsxio/builder-base:0.0.87
# builders
- name: build-and-push-machine-learning
command: /kaniko/executor
args:
- --dockerfile=/workspace/source/builder-machine-learning/Dockerfile
- --destination=gcr.io/jenkinsxio/builder-machine-learning:$(inputs.params.version)
- --context=/workspace/source
- --cache-repo=gcr.io/jenkinsxio/cache
- --cache=true
- --cache-dir=/workspace
- --snapshotMode=redo
# builders
- name: build-and-push-machine-learning-gpu
command: /kaniko/executor
args:
- --dockerfile=/workspace/source/builder-machine-learning-gpu/Dockerfile
- --destination=gcr.io/jenkinsxio/builder-machine-learning-gpu:$(inputs.params.version)
- --context=/workspace/source
- --cache-repo=gcr.io/jenkinsxio/cache
- --cache=true
- --cache-dir=/workspace
- --snapshotMode=redo
release:
pipeline:
options:
containerOptions:
resources:
limits:
memory: 24Gi
requests:
memory: 24Gi
agent:
image: gcr.io/kaniko-project/executor:debug-v1.0.0
stages:
- name: build-base
options:
volumes:
- name: kaniko-secret
secret:
secretName: kaniko-secret
items:
- key: kaniko-secret
path: kaniko/kaniko-secret.json
containerOptions:
volumeMounts:
- name: kaniko-secret
mountPath: /secrets
environment:
- name: PUSH_LATEST
value: "false"
- name: GOOGLE_APPLICATION_CREDENTIALS
value: /secrets/kaniko/kaniko-secret.json
- name: GIT_COMMITTER_EMAIL
value: [email protected]
- name: GIT_COMMITTER_NAME
value: jenkins-x-bot
- name: GIT_AUTHOR_EMAIL
value: [email protected]
- name: GIT_AUTHOR_NAME
value: jenkins-x-bot
steps:
# cache base images
- name: warm-cache
image: gcr.io/kaniko-project/warmer
command: /kaniko/warmer
args:
- --cache-dir=/workspace
- --image=gcr.io/jenkinsxio/builder-base:0.0.87
# builders
- name: build-and-push-machine-learning
command: /kaniko/executor
args:
- --dockerfile=/workspace/source/builder-machine-learning/Dockerfile
- --destination=gcr.io/jenkinsxio/builder-machine-learning:$(inputs.params.version)
- --context=/workspace/source
- --cache-repo=gcr.io/jenkinsxio/cache
- --cache=true
- --cache-dir=/workspace
- --snapshotMode=redo
- name: build-and-push-machine-learning-gpu
command: /kaniko/executor
args:
- --dockerfile=/workspace/source/builder-machine-learning-gpu/Dockerfile
- --destination=gcr.io/jenkinsxio/builder-machine-learning-gpu:$(inputs.params.version)
- --context=/workspace/source
- --cache-repo=gcr.io/jenkinsxio/cache
- --cache=true
- --cache-dir=/workspace
- --snapshotMode=redo
# update downstream dependencies
- name: update-bot
image: gcr.io/jenkinsxio/builder-maven
command: ./update-bot.sh
# Create the release notes
- name: changelog
image: gcr.io/jenkinsxio/builder-go
command: ./changelog.sh