File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,12 @@ parameters:
21
21
- description : Context Dir to use for the jlink workflow
22
22
name : CONTEXT_DIR
23
23
required : true
24
+ - description : A secret string used to configure the GitHub webhook
25
+ name : GITHUB_WEBHOOK_SECRET
26
+ generate : expression
27
+ from : " [a-zA-Z0-9]{16}"
28
+ required : true
29
+ message : " ... The GitHub webhook secret is ${GITHUB_WEBHOOK_SECRET} ..."
24
30
# #############################################################################
25
31
# Following are the objects(imagestream and buildconfigs) for all the 3-stages
26
32
objects :
@@ -112,6 +118,17 @@ objects:
112
118
to :
113
119
kind : ImageStreamTag
114
120
name : intermediate:latest
121
+ triggers :
122
+ - type : ConfigChange
123
+ - type : ImageChange
124
+ imageChange :
125
+ from :
126
+ kind : ImageStreamTag
127
+ name : ubi9-openjdk-${JDK_VERSION}-jlink:latest # Output of stage-1 which serves as input to stage-2
128
+ - type : GitHub
129
+ github :
130
+ secret : ${GITHUB_WEBHOOK_SECRET}
131
+ event : push
115
132
# #############################################################################
116
133
# stage-3: The ubi-micro ImageStream
117
134
- apiVersion : image.openshift.io/v1
You can’t perform that action at this time.
0 commit comments