Skip to content

Commit 22bda43

Browse files
committed
Add buildConfig to get a template for multistage-build
Signed-off-by: Jayashree Huttanagoudar <[email protected]>
1 parent 5576f04 commit 22bda43

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
apiVersion: template.openshift.io/v1
3+
kind: Template
4+
metadata:
5+
annotations:
6+
description: Template to produce a light weight imagestream and buildconfig for a multistage build
7+
name: multistage-build-template
8+
objects:
9+
- apiVersion: image.openshift.io/v1
10+
kind: ImageStream
11+
metadata:
12+
name: lightweight-image
13+
spec:
14+
lookupPolicy:
15+
local: false
16+
- apiVersion: build.openshift.io/v1
17+
kind: BuildConfig
18+
metadata:
19+
name: multistage-buildconfig
20+
spec:
21+
source:
22+
type: Git
23+
git:
24+
uri: https://github.com/jhuttana/openjdk.git
25+
ref: phase-4
26+
contextDir: templates/jlink/
27+
strategy:
28+
type: Docker
29+
dockerStrategy:
30+
dockerfilePath: Dockerfile
31+
output:
32+
to:
33+
kind: ImageStreamTag
34+
name: lightweight-image:latest # Tag for the final output image
35+
triggers:
36+
- type: ConfigChange

0 commit comments

Comments
 (0)