-
Notifications
You must be signed in to change notification settings - Fork 11
/
build-template.yaml
49 lines (45 loc) · 1.07 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
apiVersion: template.openshift.io/v1
kind: Template
message: |
Created ${NAME} BuildConfig and ImageStream instance
metadata:
annotations:
openshift.io/display-name: Bookbag Build
tags: gpte
template.openshift.io/bindable: "false"
name: bookbag-build
parameters:
- name: NAME
required: true
value: bookbag
- name: BUILDER_IMAGE
required: true
value: quay.io/openshifthomeroom/workshop-dashboard:5.0.1
- name: GIT_REPO
value: https://github.com/redhat-gpte-devopsautomation/bookbag-template.git
objects:
- apiVersion: image.openshift.io/v1
kind: ImageStream
metadata:
name: ${NAME}
- apiVersion: build.openshift.io/v1
kind: BuildConfig
metadata:
name: ${NAME}
spec:
output:
to:
kind: ImageStreamTag
name: ${NAME}:latest
source:
git:
ref: master
uri: ${GIT_REPO}
type: Git
strategy:
sourceStrategy:
from:
kind: DockerImage
name: ${BUILDER_IMAGE}
type: Source
triggers: []