-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathjenkins-x.yml
105 lines (101 loc) · 3.32 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
buildPack: none
pipelineConfig:
pipelines:
release:
pipeline:
options:
containerOptions:
resources:
limits:
memory: 6Gi
requests:
memory: 2Gi
agent:
image: gcr.io/kaniko-project/executor:9912ccbf8d22bbafbf971124600fbb0b13b9cbd6
stages:
- name: release
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: 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
- name: GOOGLE_APPLICATION_CREDENTIALS
value: /secrets/kaniko/kaniko-secret.json
steps:
- name: warm-cache
command: /kaniko/warmer
image: gcr.io/kaniko-project/warmer
args:
- --cache-dir=/workspace
- --image=centos:7
- name: build
image: gcr.io/kaniko-project/executor:9912ccbf8d22bbafbf971124600fbb0b13b9cbd6
command: /kaniko/executor
args:
- --dockerfile=Dockerfile
- --destination=gcr.io/jenkinsxio/git:${inputs.params.version}
- --context=/workspace/source
- --cache-repo=gcr.io/jenkinsxio/cache-git
- --cache=true
- --cache-dir=/workspace
pullRequest:
pipeline:
options:
containerOptions:
resources:
limits:
memory: 6Gi
requests:
memory: 2Gi
agent:
image: gcr.io/kaniko-project
stages:
- name: build-and-push
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: GOOGLE_APPLICATION_CREDENTIALS
value: /secrets/kaniko/kaniko-secret.json
steps:
- name: warm-cache
command: /kaniko/warmer
image: gcr.io/kaniko-project/warmer
args:
- --cache-dir=/workspace
- --image=centos:7
- name: build
image: gcr.io/kaniko-project/executor:9912ccbf8d22bbafbf971124600fbb0b13b9cbd6
command: /kaniko/executor
args:
- --dockerfile=Dockerfile
- --destination=gcr.io/jenkinsxio/git:${inputs.params.version}
- --context=/workspace/source
- --cache-repo=gcr.io/jenkinsxio/cache-git
- --cache=true
- --cache-dir=/workspace