forked from redhat-cop/containers-quickstarts
-
Notifications
You must be signed in to change notification settings - Fork 4
/
source-template.yml
59 lines (59 loc) · 1.5 KB
/
source-template.yml
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
apiVersion: v1
kind: Template
labels:
template: openshift-playbooks-builder
metadata:
annotations:
description: OpenShift Playbooks s2i Build Components
iconClass: icon-ruby
tags: ruby, jekyll
name: "${APPLICATION_NAME}"
objects:
- apiVersion: v1
kind: BuildConfig
metadata:
labels:
build: "${APPLICATION_NAME}"
name: "${APPLICATION_NAME}"
spec:
output:
to:
kind: ImageStreamTag
name: "${APPLICATION_NAME}:latest"
postCommit: {}
resources: {}
source:
contextDir: "${CONTEXT_DIR}"
git:
ref: "${SOURCE_REPOSITORY_REF}"
uri: "${SOURCE_REPOSITORY_URL}"
type: Git
strategy:
sourceStrategy:
from:
kind: ImageStreamTag
name: "${FROM_STREAM_TAG}"
type: Source
triggers:
- type: ConfigChange
- imageChange: {}
type: ImageChange
parameters:
- description: The name for the application.
name: APPLICATION_NAME
required: true
value: openshift-playbooks
- description: Path within Git repository to build; empty for root of repository
name: CONTEXT_DIR
value: ""
- description: Image stream tag for the image you'd like to use to build the application
name: FROM_STREAM_TAG
required: true
value: jekyll-builder:latest
- description: Git branch/tag reference
name: SOURCE_REPOSITORY_REF
value: master
- description: Git source URL for application
name: SOURCE_REPOSITORY_URL
required: true
value: https://github.com/redhat-cop/openshift-playbooks