-
Notifications
You must be signed in to change notification settings - Fork 10
/
build-template.yaml
147 lines (141 loc) · 2.76 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
---
apiVersion: template.openshift.io/v1
kind: Template
metadata:
annotations:
description: poolboy deploy
name: poolboy-build
parameters:
- name: NAME
value: poolboy
- name: GIT_REPO
value: https://github.com/redhat-cop/poolboy.git
- name: GIT_REF
value: main
- name: KOPF_S2I_IMAGE
value: quay.io/redhat-cop/python-kopf-s2i:v1.37
- name: PYTHON_S2I_IMAGE
value: registry.access.redhat.com/ubi8/python-38:latest
objects:
- apiVersion: image.openshift.io/v1
kind: ImageStream
metadata:
name: ${NAME}
spec:
lookupPolicy:
local: false
- apiVersion: v1
kind: BuildConfig
metadata:
name: ${NAME}
spec:
output:
to:
kind: ImageStreamTag
name: ${NAME}:latest
postCommit: {}
resources: {}
runPolicy: Serial
source:
git:
uri: ${GIT_REPO}
ref: ${GIT_REF}
strategy:
type: Source
sourceStrategy:
from:
kind: DockerImage
name: ${KOPF_S2I_IMAGE}
triggers: []
- apiVersion: image.openshift.io/v1
kind: ImageStream
metadata:
name: ${NAME}-admin
spec:
lookupPolicy:
local: false
- apiVersion: v1
kind: BuildConfig
metadata:
name: ${NAME}-admin
spec:
output:
to:
kind: ImageStreamTag
name: ${NAME}-admin:latest
postCommit: {}
resources: {}
runPolicy: Serial
source:
contextDir: admin
git:
uri: ${GIT_REPO}
ref: ${GIT_REF}
strategy:
type: Docker
dockerStrategy:
forcePull: true
triggers: []
#- apiVersion: image.openshift.io/v1
# kind: ImageStream
# metadata:
# name: ${NAME}-admin-api
# spec:
# lookupPolicy:
# local: false
#
#- apiVersion: v1
# kind: BuildConfig
# metadata:
# name: ${NAME}-admin-api
# spec:
# output:
# to:
# kind: ImageStreamTag
# name: ${NAME}-admin-api:latest
# postCommit: {}
# resources: {}
# runPolicy: Serial
# source:
# contextDir: admin-api
# git:
# uri: ${GIT_REPO}
# ref: ${GIT_REF}
# strategy:
# type: Source
# sourceStrategy:
# from:
# kind: DockerImage
# name: ${PYTHON_S2I_IMAGE}
# triggers: []
#
#- apiVersion: image.openshift.io/v1
# kind: ImageStream
# metadata:
# name: ${NAME}-admin-ui
# spec:
# lookupPolicy:
# local: false
#
#- apiVersion: v1
# kind: BuildConfig
# metadata:
# name: ${NAME}-admin-ui
# spec:
# output:
# to:
# kind: ImageStreamTag
# name: ${NAME}-admin-ui:latest
# postCommit: {}
# resources: {}
# runPolicy: Serial
# source:
# contextDir: admin-ui
# git:
# uri: ${GIT_REPO}
# ref: ${GIT_REF}
# strategy:
# type: Docker
# dockerStrategy:
# forcePull: true
# triggers: []