File tree Expand file tree Collapse file tree 1 file changed +44
-0
lines changed
templates/jlink/jlink-builder Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,15 @@ parameters:
10
10
name : JDK_VERSION
11
11
value : " 11"
12
12
required : true
13
+ - description : Application to run the jlink workflow on
14
+ name : APPLICATION
15
+ required : true
16
+ - description : Git Ref to run the jlink workflow on
17
+ name : REF
18
+ required : true
19
+ - description : Context Dir to use for the jlink workflow
20
+ name : CONTEXT_DIR
21
+ required : true
13
22
objects :
14
23
- apiVersion : image.openshift.io/v1
15
24
kind : ImageStream
@@ -49,3 +58,38 @@ objects:
49
58
to :
50
59
kind : ImageStreamTag
51
60
name : ubi9-openjdk-${JDK_VERSION}-jlink:latest
61
+ - apiVersion : image.openshift.io/v1
62
+ kind : ImageStream
63
+ metadata :
64
+ name : intermediate
65
+ spec :
66
+ lookupPolicy :
67
+ local : false
68
+ - apiVersion : build.openshift.io/v1
69
+ kind : BuildConfig
70
+ metadata :
71
+ name : jlink-s2i-jdk-${JDK_VERSION}
72
+ labels :
73
+ app : jlink-s2i-jdk-${JDK_VERSION}
74
+ spec :
75
+ source :
76
+ type : Git
77
+ git :
78
+ uri : ${APPLICATION}
79
+ ref : ${REF}
80
+ contextDir : ${CONTEXT_DIR}
81
+ strategy :
82
+ sourceStrategy :
83
+ from :
84
+ kind : ImageStreamTag
85
+ name : ubi9-openjdk-${JDK_VERSION}-jlink:latest # Output Imagestream for Stage 1
86
+ pullPolicy : Always
87
+ env :
88
+ - name : S2I_ENABLE_JLINK
89
+ value : " true"
90
+ - name : LOGGING_SCRIPT_DEBUG
91
+ value : " true"
92
+ output :
93
+ to :
94
+ kind : ImageStreamTag
95
+ name : intermediate:latest
You can’t perform that action at this time.
0 commit comments