1
- apiVersion : tekton.dev/v1beta1
1
+ apiVersion : tekton.dev/v1
2
2
kind : PipelineRun
3
3
metadata :
4
4
creationTimestamp : null
@@ -151,6 +151,10 @@ spec:
151
151
type : string
152
152
spec : null
153
153
stepTemplate :
154
+ computeResources :
155
+ requests :
156
+ cpu : 400m
157
+ memory : 512Mi
154
158
env :
155
159
- name : BUILD_ID
156
160
value : $(params.BUILD_ID)
@@ -178,16 +182,11 @@ spec:
178
182
value : $(params.REPO_OWNER)
179
183
- name : REPO_URL
180
184
value : $(params.REPO_URL)
181
- name : " "
182
- resources :
183
- requests :
184
- cpu : 400m
185
- memory : 512Mi
186
185
workingDir : /workspace/source
187
186
steps :
188
- - image : gcr.io/tekton-releases/github.com/tektoncd/pipeline/cmd/git-init:v0.19.0
187
+ - computeResources : {}
188
+ image : gcr.io/tekton-releases/github.com/tektoncd/pipeline/cmd/git-init:v0.19.0
189
189
name : git-clone
190
- resources : {}
191
190
script : |
192
191
#!/bin/sh
193
192
export SUBDIR="source"
@@ -200,44 +199,45 @@ spec:
200
199
git checkout $PULL_PULL_SHA
201
200
echo "checked out revision: $PULL_PULL_SHA to dir: $SUBDIR"
202
201
workingDir : /workspace
203
- - image : gcr.io/jenkinsxio/jx-boot:3.1.62
202
+ - computeResources : {}
203
+ image : gcr.io/jenkinsxio/jx-boot:3.1.62
204
204
name : git-merge
205
- resources : {}
206
205
script : |
207
206
#!/usr/bin/env sh
208
207
jx gitops git merge variables
209
208
workingDir : /workspace/source
210
- - image : gcr.io/jenkinsxio/jx-boot:3.1.155
209
+ - computeResources : {}
210
+ image : gcr.io/jenkinsxio/jx-boot:3.1.155
211
211
name : jx-variables
212
- resources : {}
213
212
script : |
214
213
#!/usr/bin/env sh
215
214
jx gitops variables
216
- - image : node:12-slim
215
+ - computeResources : {}
216
+ image : node:12-slim
217
217
name : build-npm-install
218
- resources : {}
219
218
script : |
220
219
#!/bin/sh
221
220
npm install
222
- - image : node:12-slim
221
+ - computeResources : {}
222
+ image : node:12-slim
223
223
name : build-npm-test
224
- resources : {}
225
224
script : |
226
225
#!/bin/sh
227
226
CI=true DISPLAY=:99 npm test
228
- - image : gcr.io/kaniko-project/executor:debug-v1.3.0
227
+ - computeResources : {}
228
+ image : gcr.io/kaniko-project/executor:debug-v1.3.0
229
229
name : build-container-build
230
- resources : {}
231
230
script : |
232
231
#!/busybox/sh
233
232
source .jx/variables.sh
234
233
cp /tekton/creds-secrets/tekton-container-registry-auth/.dockerconfigjson /kaniko/.docker/config.json
235
234
/kaniko/executor $KANIKO_FLAGS --context=/workspace/source --dockerfile=Dockerfile --destination=$DOCKER_REGISTRY/$DOCKER_REGISTRY_ORG/$APP_NAME:$VERSION
236
- - image : gcr.io/jenkinsxio/jx-preview:0.0.143
235
+ - computeResources : {}
236
+ image : gcr.io/jenkinsxio/jx-preview:0.0.143
237
237
name : promote-jx-preview
238
- resources : {}
239
238
script : |
240
239
#!/usr/bin/env sh
241
240
source .jx/variables.sh
242
241
jx preview create
242
+ taskRunTemplate : {}
243
243
status : {}
0 commit comments