2016-12-05 22:19:05 +00:00
|
|
|
apiVersion: v1
|
|
|
|
kind: Template
|
|
|
|
objects:
|
|
|
|
- apiVersion: v1
|
|
|
|
kind: ImageStream
|
|
|
|
metadata:
|
2017-01-04 00:48:01 +00:00
|
|
|
name: ${APP}
|
2016-12-05 22:19:05 +00:00
|
|
|
labels:
|
2017-01-04 00:48:01 +00:00
|
|
|
app: ${APP}
|
2016-12-05 22:19:05 +00:00
|
|
|
- apiVersion: v1
|
|
|
|
kind: BuildConfig
|
|
|
|
metadata:
|
2017-01-04 00:48:01 +00:00
|
|
|
name: ${APP}-${BRANCH}
|
2016-12-05 22:19:05 +00:00
|
|
|
labels:
|
2017-01-04 00:48:01 +00:00
|
|
|
app: ${APP}
|
2016-12-05 22:19:05 +00:00
|
|
|
spec:
|
|
|
|
output:
|
|
|
|
to:
|
|
|
|
kind: ImageStreamTag
|
2017-01-04 00:48:01 +00:00
|
|
|
name: ${APP}:b-${BRANCH}
|
2016-12-05 22:19:05 +00:00
|
|
|
source:
|
2017-01-02 23:18:48 +00:00
|
|
|
type: Binary
|
2017-01-02 23:53:12 +00:00
|
|
|
binary: {}
|
2016-12-05 22:19:05 +00:00
|
|
|
strategy:
|
|
|
|
type: Source
|
|
|
|
sourceStrategy:
|
|
|
|
from:
|
|
|
|
kind: ImageStreamTag
|
|
|
|
name: ruby:2.3
|
|
|
|
namespace: openshift
|
2017-01-04 00:29:12 +00:00
|
|
|
parameters:
|
2017-01-04 00:48:01 +00:00
|
|
|
- description: The application name.
|
|
|
|
displayName: Application name
|
|
|
|
name: APP
|
|
|
|
value: frontend
|
|
|
|
- description: The branch being built.
|
|
|
|
displayName: Branch
|
|
|
|
name: BRANCH
|