This repository has been archived by the owner on Feb 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
jenkins-x.yml
133 lines (133 loc) · 4.74 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
buildPack: none
pipelineConfig:
pipelines:
pullRequest:
pipeline:
options:
containerOptions:
resources:
limits:
memory: 8Gi
requests:
memory: 4Gi
agent:
image: gcr.io/kaniko-project
stages:
- name: build-and-push
environment:
- name: GKE_SA
value: /builder/home/jenkinsx-dev-07b8e95876b1.json
- name: GOOGLE_APPLICATION_CREDENTIALS
value: /builder/home/kaniko-secret.json
steps:
- image: jenkinsxio/jx:1.3.1096
name: jx-step-credential
command: jx
args:
- step
- credential
- -s
- kaniko-secret
- -k
- kaniko-secret
- -f
- /builder/home/kaniko-secret.json
- image: gcr.io/kaniko-project/executor:9912ccbf8d22bbafbf971124600fbb0b13b9cbd6
name: build-bash-image
command: /kaniko/executor
args:
- --dockerfile=Dockerfile.go-alpine
- --destination=gcr.io/jenkinsxio/dev-env-base:${inputs.params.version}-go-alpine
- --context=/workspace/source
- --cache-repo=gcr.io/jenkinsxio/cache
- --cache=true
- --cache-dir=/workspace
- --build-arg
- "SHELL=bash"
- --build-arg
- "SHELL_PACKAGES=bash-completion"
- image: gcr.io/kaniko-project/executor:9912ccbf8d22bbafbf971124600fbb0b13b9cbd6
name: build-zsh-image
command: /kaniko/executor
args:
- --dockerfile=Dockerfile.go-alpine
- --destination=gcr.io/jenkinsxio/dev-env-base:${inputs.params.version}-go-alpine-zsh
- --context=/workspace/source
- --cache-repo=gcr.io/jenkinsxio/cache
- --cache=true
- --cache-dir=/workspace
- --build-arg
- "SHELL=zsh"
- --build-arg
- "SHELL_PACKAGES=zsh-autosuggestions zsh-syntax-highlighting"
release:
pipeline:
options:
containerOptions:
resources:
limits:
memory: 8Gi
requests:
memory: 4Gi
agent:
image: gcr.io/kaniko-project/executor:9912ccbf8d22bbafbf971124600fbb0b13b9cbd6
stages:
- name: release
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: /builder/home/kaniko-secret.json
steps:
- image: jenkinsxio/jx:1.3.1096
command: jx
args:
- step
- credential
- -s
- kaniko-secret
- -k
- kaniko-secret
- -f
- /builder/home/kaniko-secret.json
- image: gcr.io/kaniko-project/executor:9912ccbf8d22bbafbf971124600fbb0b13b9cbd6
command: /kaniko/executor
args:
- --dockerfile=Dockerfile.go-alpine
- --destination=gcr.io/jenkinsxio/dev-env-base:${inputs.params.version}-go-alpine
- --context=/workspace/source
- --cache-repo=gcr.io/jenkinsxio/cache
- --cache=true
- --cache-dir=/workspace
- --build-arg
- "SHELL=bash"
- --build-arg
- "SHELL_PACKAGES=bash-completion"
- image: gcr.io/kaniko-project/executor:9912ccbf8d22bbafbf971124600fbb0b13b9cbd6
command: /kaniko/executor
args:
- --dockerfile=Dockerfile.go-alpine
- --destination=gcr.io/jenkinsxio/dev-env-base:${inputs.params.version}-go-alpine-zsh
- --context=/workspace/source
- --cache-repo=gcr.io/jenkinsxio/cache
- --cache=true
- --cache-dir=/workspace
- --build-arg
- "SHELL=zsh"
- --build-arg
- "SHELL_PACKAGES=zsh-autosuggestions zsh-syntax-highlighting"
# Create the release notes
- name: changelog
image: gcr.io/jenkinsxio/builder-go:0.1.571
command: ./scripts/changelog.sh
- name: update-bot
image: gcr.io/jenkinsxio/builder-jx:0.1.571
command: ./scripts/update-bot.sh
args:
- ${inputs.params.version}