Skip to content

Commit 1c9bc41

Browse files
authored
Merge pull request #489 from jhuttana/stage-2-hooks
[OPENJDK-2899]Add hooks for stage-2 build
2 parents f36bae7 + a231afc commit 1c9bc41

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

templates/jlink/jlinked-app.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ parameters:
2121
- description: Context Dir to use for the jlink workflow
2222
name: CONTEXT_DIR
2323
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} ..."
2430
##############################################################################
2531
# Following are the objects(imagestream and buildconfigs) for all the 3-stages
2632
objects:
@@ -112,6 +118,17 @@ objects:
112118
to:
113119
kind: ImageStreamTag
114120
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
115132
##############################################################################
116133
# stage-3: The ubi-micro ImageStream
117134
- apiVersion: image.openshift.io/v1

0 commit comments

Comments
 (0)