forked from openshift/origin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest-imagechangetriggers.yaml
90 lines (86 loc) · 1.69 KB
/
test-imagechangetriggers.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
kind: List
apiVersion: v1
items:
- kind: ImageStream
apiVersion: v1
metadata:
name: nodejs-ex
spec:
tags:
- name: latest
from:
kind: DockerImage
name: centos/nodejs-6-centos7:latest
- kind: BuildConfig
apiVersion: v1
metadata:
name: bc-source
spec:
source:
type: Git
git:
uri: https://github.com/openshift/nodejs-ex.git
strategy:
type: Source
sourceStrategy:
from:
kind: ImageStreamTag
name: nodejs-ex:latest
triggers:
- type: ImageChange
imageChange:
from:
kind: ImageStreamTag
name: nodejs-ex:latest
- kind: BuildConfig
apiVersion: v1
metadata:
name: bc-docker
spec:
source:
type: Dockerfile
dockerfile: FROM nodejs
strategy:
type: Docker
dockerStrategy:
from:
kind: ImageStreamTag
name: nodejs-ex:latest
triggers:
- type: ImageChange
imageChange:
from:
kind: ImageStreamTag
name: nodejs-ex:latest
- kind: BuildConfig
apiVersion: v1
metadata:
name: bc-custom
spec:
strategy:
type: Custom
customStrategy:
from:
kind: ImageStreamTag
name: nodejs-ex:latest
triggers:
- type: ImageChange
imageChange:
from:
kind: ImageStreamTag
name: nodejs-ex:latest
- kind: BuildConfig
apiVersion: v1
metadata:
name: bc-jenkins
spec:
strategy:
type: Jenkins
jenkinsPipelineStrategy:
jenkinsfile: node {}
triggers:
- type: ImageChange
imageChange:
from:
kind: ImageStreamTag
name: nodejs-ex:latest