-
Notifications
You must be signed in to change notification settings - Fork 273
/
Copy pathdocker-template.yml
59 lines (59 loc) · 1.52 KB
/
docker-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: template.openshift.io/v1
kind: Template
labels:
template: jekyll-builder
metadata:
annotations:
description: Jekyll s2i Build Components
iconClass: icon-ruby
tags: ruby, jekyll
name: "${APPLICATION_NAME}"
objects:
- apiVersion: build.openshift.io/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:
dockerStrategy:
from:
kind: ImageStreamTag
name: "${FROM_STREAM_TAG}"
type: Docker
triggers:
- type: ConfigChange
- imageChange: {}
type: ImageChange
parameters:
- description: The name for the application.
name: APPLICATION_NAME
required: true
value: jekyll-builder
- description: Path within Git repository to build; empty for root of repository
name: CONTEXT_DIR
value: build-s2i-jekyll
- description: Image stream tag for the image you'd like to use to build the application
name: FROM_STREAM_TAG
required: true
value: ruby:2.4.0-alpine
- 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/containers-quickstarts