-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild-template.yaml
112 lines (106 loc) · 2.39 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
---
apiVersion: template.openshift.io/v1
kind: Template
metadata:
annotations:
description: >-
Build resources for openshift-provision-manager and
openshift-provision-runner.
name: openshift-provision-manager-build
parameters:
- name: GIT_REPO
value: https://github.com/gnuthought/openshift-provision-manager.git
- name: NAMESPACE
value: openshift
objects:
- apiVersion: image.openshift.io/v1
kind: ImageStream
metadata:
annotations:
openshift.io/display-name: CentOS
name: centos
namespace: ${NAMESPACE}
spec:
lookupPolicy:
local: false
tags:
- annotations:
description: CentOS 7 base image
openshift.io/display-name: CentOS 7
openshift.io/provider-display-name: CentOS 7
from:
kind: DockerImage
name: docker.io/centos:7
importPolicy: {}
name: "7"
referencePolicy:
type: Local
- apiVersion: image.openshift.io/v1
kind: ImageStream
metadata:
name: openshift-provision-manager
namespace: ${NAMESPACE}
spec:
lookupPolicy:
local: false
- apiVersion: image.openshift.io/v1
kind: ImageStream
metadata:
name: openshift-provision-runner
namespace: ${NAMESPACE}
spec:
lookupPolicy:
local: false
- apiVersion: v1
kind: BuildConfig
metadata:
name: openshift-provision-manager
namespace: ${NAMESPACE}
spec:
output:
to:
kind: ImageStreamTag
name: openshift-provision-manager:latest
postCommit: {}
resources: {}
runPolicy: Serial
source:
contextDir: manager
git:
uri: ${GIT_REPO}
ref: master
strategy:
type: Docker
dockerStrategy:
from:
kind: ImageStreamTag
name: centos:7
triggers: []
- apiVersion: v1
kind: BuildConfig
metadata:
name: openshift-provision-runner
namespace: ${NAMESPACE}
spec:
output:
to:
kind: ImageStreamTag
name: openshift-provision-runner:latest
postCommit: {}
resources: {}
runPolicy: Serial
source:
contextDir: runner
git:
uri: ${GIT_REPO}
ref: master
strategy:
type: Docker
dockerStrategy:
buildArgs:
- name: OPENSHIFT_PROVISION_REPO
value: https://github.com/gnuthought/ansible-role-openshift-provision
from:
kind: ImageStreamTag
name: centos:7
triggers: []