-
Notifications
You must be signed in to change notification settings - Fork 121
/
Copy pathpullrequest.yaml
76 lines (76 loc) · 2.2 KB
/
pullrequest.yaml
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
apiVersion: tekton.dev/v1beta1
kind: PipelineRun
metadata:
creationTimestamp: null
name: pullrequest
spec:
pipelineSpec:
tasks:
- name: from-build-pack
resources: {}
taskSpec:
metadata: {}
stepTemplate:
env:
- name: HOME
value: /tekton/home
envFrom:
- secretRef:
name: jx-boot-job-env-vars
optional: true
name: ""
resources:
limits: {}
workingDir: /workspace/source
steps:
- image: ghcr.io/jenkins-x/jx-boot:3.11.52
name: jx-variables
resources:
# set requests for the pod here
requests:
cpu: 400m
memory: 512Mi
script: |
#!/usr/bin/env sh
jx gitops variables
jx gitops pr variables
- image: node:20-slim
name: build-npm-install
resources: {}
script: |
#!/bin/sh
npm install
- image: node:20-slim
name: build-npm-test
resources: {}
script: |
#!/bin/sh
CI=true DISPLAY=:99 npm test
- image: node:20-slim
name: build-ui-build
resources: {}
script: |
#!/bin/sh
npm run build
- image: ghcr.io/jenkins-x/jx-registry:0.1.13
name: check-registry
resources: {}
- image: gcr.io/kaniko-project/executor:v1.9.1-debug
name: build-container-build
resources: {}
script: |
#!/busybox/sh
source .jx/variables.sh
cp /tekton/creds/.docker/config.json /kaniko/.docker/config.json
/kaniko/executor $KANIKO_FLAGS --context=/workspace/source --dockerfile=${DOCKERFILE_PATH:-Dockerfile} --destination=$PUSH_CONTAINER_REGISTRY/$DOCKER_REGISTRY_ORG/$APP_NAME:$VERSION
- image: ghcr.io/jenkins-x-plugins/jx-preview:0.5.4
name: promote-jx-preview
resources: {}
script: |
#!/usr/bin/env sh
source .jx/variables.sh
jx preview create
podTemplate: {}
serviceAccountName: tekton-bot
timeout: 12h0m0s
status: {}