-
Notifications
You must be signed in to change notification settings - Fork 270
/
build.yml
172 lines (172 loc) · 4.16 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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
apiVersion: template.openshift.io/v1
kind: Template
labels:
template: liberty-builder
metadata:
name: liberty
objects:
- apiVersion: image.openshift.io/v1
kind: ImageStream
metadata:
labels:
build: s2i-liberty
name: s2i-liberty
spec:
lookupPolicy:
local: false
- apiVersion: image.openshift.io/v1
kind: ImageStream
metadata:
labels:
build: s2i-liberty
name: websphere-liberty
spec:
lookupPolicy:
local: false
tags:
- annotations:
openshift.io/imported-from: websphere-liberty:webProfile8
from:
kind: DockerImage
name: websphere-liberty:webProfile8
importPolicy: {}
name: webProfile8
- apiVersion: image.openshift.io/v1
kind: ImageStream
metadata:
labels:
build: hello-world-artifacts
name: hello-world-artifacts
spec:
lookupPolicy:
local: false
- apiVersion: image.openshift.io/v1
kind: ImageStream
metadata:
labels:
build: hello-world
name: hello-world
spec:
lookupPolicy:
local: false
- apiVersion: build.openshift.io/v1
kind: BuildConfig
metadata:
labels:
build: s2i-liberty
name: websphere-liberty
spec:
output:
to:
kind: ImageStreamTag
name: s2i-liberty:latest
source:
contextDir: ${LIBERTY_CONTEXT_DIR}
git:
uri: ${LIBERTY_SOURCE_REPOSITORY_URL}
ref: ${LIBERTY_SOURCE_REPOSITORY_REF}
type: Git
strategy:
dockerStrategy:
from:
kind: ImageStreamTag
name: websphere-liberty:webProfile8
type: Docker
triggers:
- type: ConfigChange
- imageChangeParams:
automatic: true
from:
kind: ImageStreamTag
name: websphere-liberty:webProfile8
type: ImageChange
- apiVersion: build.openshift.io/v1
kind: BuildConfig
metadata:
labels:
build: hello-world-artifacts
name: hello-world-artifacts
spec:
output:
to:
kind: ImageStreamTag
name: hello-world-artifacts:latest
source:
git:
uri: ${APPLICATION_SOURCE_REPOSITORY_URL}
ref: ${APPLICATION_SOURCE_REPOSITORY_REF}
type: Git
strategy:
sourceStrategy:
from:
kind: ImageStreamTag
name: jboss-eap70-openshift:1.6
namespace: openshift
type: Source
triggers:
- type: ConfigChange
- imageChangeParams:
automatic: true
from:
kind: ImageStreamTag
name: jboss-eap70-openshift:1.6
namespace: openshift
type: ImageChange
- apiVersion: build.openshift.io/v1
kind: BuildConfig
metadata:
labels:
build: hello-world
name: hello-world
spec:
output:
to:
kind: ImageStreamTag
name: hello-world:latest
source:
images:
- from:
kind: ImageStreamTag
name: hello-world-artifacts:latest
paths:
- destinationDir: artifacts
sourcePath: /opt/eap/standalone/deployments/hello-world-war-1.0.0.war
strategy:
sourceStrategy:
from:
kind: ImageStreamTag
name: s2i-liberty:latest
type: Source
triggers:
- type: ConfigChange
- imageChangeParams:
automatic: true
from:
kind: ImageStreamTag
name: hello-world-artifacts:latest
type: ImageChange
parameters:
- description: Path within Git repository to build; empty for root of repository
name: APPLICATION_CONTEXT_DIR
required: false
value: ''
- description: Git branch/tag reference
name: APPLICATION_SOURCE_REPOSITORY_REF
required: false
value: master
- description: Git source URL for application
name: APPLICATION_SOURCE_REPOSITORY_URL
required: true
value: https://github.com/efsavage/hello-world-war
- description: Path within Git repository to build; empty for root of repository
name: LIBERTY_CONTEXT_DIR
required: false
value: build-s2i-liberty
- description: Git branch/tag reference
name: LIBERTY_SOURCE_REPOSITORY_REF
required: false
value: master
- description: Git source URL for Liberty
name: LIBERTY_SOURCE_REPOSITORY_URL
required: true
value: https://github.com/redhat-cop/containers-quickstarts