forked from redhat-cop/containers-quickstarts
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.yml
129 lines (129 loc) · 3.64 KB
/
build.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
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
apiVersion: v1
kind: Template
labels:
template: play-framework-quickstart-rhel
metadata:
annotations:
description: Play Framework builder and sample application
iconClass: icon-play
tags: play,java
name: play-framework-quickstart-rhel
objects:
- apiVersion: v1
kind: ImageStream
metadata:
labels:
build: ${PLAY_BUILDER_NAME}
name: rhel7
spec:
dockerImageRepository: registry.access.redhat.com/rhel7/rhel
- apiVersion: v1
kind: ImageStream
metadata:
labels:
build: ${PLAY_BUILDER_NAME}
name: ${PLAY_BUILDER_NAME}
- apiVersion: v1
kind: ImageStream
metadata:
labels:
application: ${PLAY_APPLICATION_NAME}
name: ${PLAY_APPLICATION_NAME}
- apiVersion: v1
kind: BuildConfig
metadata:
labels:
build: ${PLAY_BUILDER_NAME}
name: ${PLAY_BUILDER_NAME}
spec:
output:
to:
kind: ImageStreamTag
name: ${PLAY_BUILDER_NAME}:latest
source:
contextDir: ${PLAY_BUILDER_CONTEXT_DIR}
git:
ref: ${PLAY_BUILDER_SOURCE_REPOSITORY_REF}
uri: ${PLAY_BUILDER_SOURCE_REPOSITORY_URL}
type: Git
strategy:
dockerStrategy:
dockerFilePath: Dockerfile
from:
kind: ImageStreamTag
name: rhel7:7.4
type: Docker
triggers:
- type: ConfigChange
- imageChange: {}
type: ImageChange
- apiVersion: v1
kind: BuildConfig
metadata:
labels:
application: ${PLAY_APPLICATION_NAME}
name: ${PLAY_APPLICATION_NAME}
spec:
output:
to:
kind: ImageStreamTag
name: ${PLAY_APPLICATION_NAME}:latest
source:
contextDir: ${PLAY_APPLICATION_CONTEXT_DIR}
git:
ref: ${PLAY_APPLICATION_SOURCE_REPOSITORY_REF}
uri: ${PLAY_APPLICATION_SOURCE_REPOSITORY_URL}
type: Git
strategy:
sourceStrategy:
from:
kind: ImageStreamTag
name: ${PLAY_BUILDER_NAME}:latest
type: Source
triggers:
- type: ConfigChange
- imageChange: {}
type: ImageChange
parameters:
- description: The name for the Play Framework builder.
displayName: Play builder name
name: PLAY_BUILDER_NAME
required: true
value: s2i-play
- description: Git source URI for Play Framework builder
displayName: Play builder source url
name: PLAY_BUILDER_SOURCE_REPOSITORY_URL
required: true
value: https://github.com/redhat-cop/containers-quickstarts.git
- description: Play Framework builder source branch/tag reference.
displayName: Play builder source branch/tag reference.
name: PLAY_BUILDER_SOURCE_REPOSITORY_REF
required: false
value: master
- description: Path within Git project to build containing the Play Framework builder;
empty for root project directory.
displayName: Play builder context directory.
name: PLAY_BUILDER_CONTEXT_DIR
required: false
value: s2i-play
- description: The name for the Play Framework application.
displayName: Play application name
name: PLAY_APPLICATION_NAME
required: true
value: play-app
- description: Git source URI for Play Framework application
displayName: Play application source url
name: PLAY_APPLICATION_SOURCE_REPOSITORY_URL
required: true
value: https://github.com/playframework/play-java-ebean-example.git
- description: Play Framework application source branch/tag reference.
displayName: Play application source branch/tag reference.
name: PLAY_APPLICATION_SOURCE_REPOSITORY_REF
required: false
value: 2.6.x
- description: Path within Git project to build containing the Play Framework application;
empty for root project directory.
displayName: Play application context directory.
name: PLAY_APPLICATION_CONTEXT_DIR
required: false
value: ""