forked from jenkins-x/jx3-pipeline-catalog
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpullrequest.yaml
More file actions
49 lines (49 loc) · 1.48 KB
/
Copy pathpullrequest.yaml
File metadata and controls
49 lines (49 loc) · 1.48 KB
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
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:
requests:
cpu: 400m
memory: 512Mi
workingDir: /workspace/source
steps:
- image: ghcr.io/jenkins-x/jx-boot:3.2.225
name: jx-variables
resources: {}
script: |
#!/usr/bin/env sh
jx gitops variables
jx gitops pr variables
- image: ghcr.io/jenkins-x/jx-registry:0.1.1
name: check-registry
resources: {}
- image: gcr.io/kaniko-project/executor:v1.6.0-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
podTemplate: {}
serviceAccountName: tekton-bot
timeout: 12h0m0s
status: {}