Some renaming

This commit is contained in:
Ovidio Mallo 2017-01-04 01:48:01 +01:00
parent c8432d7fad
commit 0715142fcd
2 changed files with 13 additions and 9 deletions

View file

@ -4,7 +4,7 @@ dev:
templates: templates:
- manifest: deployment/manifests/build.yaml - manifest: deployment/manifests/build.yaml
parameters: parameters:
OUTPUT_IMAGE_STREAM_TAG: b-master BRANCH: master
deployment: deployment:
frontend: frontend:
templates: templates:

View file

@ -4,20 +4,20 @@ objects:
- apiVersion: v1 - apiVersion: v1
kind: ImageStream kind: ImageStream
metadata: metadata:
name: frontend name: ${APP}
labels: labels:
app: frontend app: ${APP}
- apiVersion: v1 - apiVersion: v1
kind: BuildConfig kind: BuildConfig
metadata: metadata:
name: frontend name: ${APP}-${BRANCH}
labels: labels:
app: frontend app: ${APP}
spec: spec:
output: output:
to: to:
kind: ImageStreamTag kind: ImageStreamTag
name: frontend:${OUTPUT_IMAGE_STREAM_TAG} name: ${APP}:b-${BRANCH}
source: source:
type: Binary type: Binary
binary: {} binary: {}
@ -29,6 +29,10 @@ objects:
name: ruby:2.3 name: ruby:2.3
namespace: openshift namespace: openshift
parameters: parameters:
- description: The image stream tag to build to. - description: The application name.
displayName: Output image stream tag displayName: Application name
name: OUTPUT_IMAGE_STREAM_TAG name: APP
value: frontend
- description: The branch being built.
displayName: Branch
name: BRANCH