forked from redhat-cop/babylon-events-console
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild-template.yaml
80 lines (75 loc) · 1.54 KB
/
build-template.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
---
apiVersion: template.openshift.io/v1
kind: Template
metadata:
annotations:
description: babylon-events-console
name: babylon-events-console
parameters:
- name: GIT_REPO
value: https://github.com/redhat-gpte-devopsautomation/babylon-events-console.git
- name: NAME
value: babylon-events
objects:
- apiVersion: image.openshift.io/v1
kind: ImageStream
metadata:
name: ${NAME}-ui
spec:
lookupPolicy:
local: false
- apiVersion: image.openshift.io/v1
kind: ImageStream
metadata:
name: ${NAME}-operator
spec:
lookupPolicy:
local: false
- apiVersion: v1
kind: BuildConfig
metadata:
name: ${NAME}-ui
spec:
output:
to:
kind: ImageStreamTag
name: ${NAME}-ui:latest
postCommit: {}
resources: {}
runPolicy: Serial
source:
contextDir: ui
git:
uri: ${GIT_REPO}
ref: master
strategy:
type: Docker
dockerStrategy:
from:
kind: DockerImage
name: registry.access.redhat.com/ubi8/python-36:latest
triggers: []
- apiVersion: v1
kind: BuildConfig
metadata:
name: ${NAME}-operator
spec:
output:
to:
kind: ImageStreamTag
name: ${NAME}-operator:latest
postCommit: {}
resources: {}
runPolicy: Serial
source:
contextDir: operator
git:
uri: ${GIT_REPO}
ref: master
strategy:
type: Docker
dockerStrategy:
from:
kind: DockerImage
name: registry.access.redhat.com/ubi8:latest
triggers: []