forked from jenkins-x/jx3-pipeline-catalog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpullrequest.yaml
65 lines (65 loc) · 1.92 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
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: {}
workingDir: /workspace/source
steps:
- image: ghcr.io/jenkins-x/jx-boot:3.10.87
name: jx-variables
resources: {}
script: |
#!/usr/bin/env sh
jx gitops variables
jx gitops pr variables
- image: cpp
name: build-cmake
resources: {}
script: |
#!/bin/sh
cmake3 CMakeLists.txt
- image: cpp
name: build-make
resources: {}
script: |
#!/bin/sh
make
- image: ghcr.io/jenkins-x/jx-registry:0.1.10
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-secrets/tekton-container-registry-auth/.dockerconfigjson /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.0.222
name: promote-jx-preview
resources: {}
script: |
#!/usr/bin/env sh
source .jx/variables.sh
jx preview create
podTemplate: {}
serviceAccountName: tekton-bot
timeout: 12h0m0s
status: {}