Skip to content

Commit

Permalink
Merge pull request #474 from Josh-Matsuoka/jlink-stage-2
Browse files Browse the repository at this point in the history
OPENJDK-2734: Stage 2 initial implementation
  • Loading branch information
jmtd authored Apr 4, 2024
2 parents a859973 + 0970d20 commit bd80d12
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions templates/jlink/jlink-builder/jlink-builder-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,15 @@ parameters:
name: JDK_VERSION
value: "11"
required: true
- description: Application to run the jlink workflow on
name: APPLICATION
required: true
- description: Git Ref to run the jlink workflow on
name: REF
required: true
- description: Context Dir to use for the jlink workflow
name: CONTEXT_DIR
required: true
objects:
- apiVersion: image.openshift.io/v1
kind: ImageStream
Expand Down Expand Up @@ -49,3 +58,38 @@ objects:
to:
kind: ImageStreamTag
name: ubi9-openjdk-${JDK_VERSION}-jlink:latest
- apiVersion: image.openshift.io/v1
kind: ImageStream
metadata:
name: intermediate
spec:
lookupPolicy:
local: false
- apiVersion: build.openshift.io/v1
kind: BuildConfig
metadata:
name: jlink-s2i-jdk-${JDK_VERSION}
labels:
app: jlink-s2i-jdk-${JDK_VERSION}
spec:
source:
type: Git
git:
uri: ${APPLICATION}
ref: ${REF}
contextDir: ${CONTEXT_DIR}
strategy:
sourceStrategy:
from:
kind: ImageStreamTag
name: ubi9-openjdk-${JDK_VERSION}-jlink:latest # Output Imagestream for Stage 1
pullPolicy: Always
env:
- name: S2I_ENABLE_JLINK
value: "true"
- name: LOGGING_SCRIPT_DEBUG
value: "true"
output:
to:
kind: ImageStreamTag
name: intermediate:latest

0 comments on commit bd80d12

Please sign in to comment.