diff --git a/deployment/config.yaml b/deployment/config.yaml index 1fce029..e549c5b 100644 --- a/deployment/config.yaml +++ b/deployment/config.yaml @@ -4,7 +4,7 @@ dev: templates: - manifest: deployment/manifests/build.yaml parameters: - OUTPUT_IMAGE_STREAM_TAG: b-master + BRANCH: master deployment: frontend: templates: diff --git a/deployment/manifests/build.yaml b/deployment/manifests/build.yaml index cffe051..007b995 100644 --- a/deployment/manifests/build.yaml +++ b/deployment/manifests/build.yaml @@ -4,20 +4,20 @@ objects: - apiVersion: v1 kind: ImageStream metadata: - name: frontend + name: ${APP} labels: - app: frontend + app: ${APP} - apiVersion: v1 kind: BuildConfig metadata: - name: frontend + name: ${APP}-${BRANCH} labels: - app: frontend + app: ${APP} spec: output: to: kind: ImageStreamTag - name: frontend:${OUTPUT_IMAGE_STREAM_TAG} + name: ${APP}:b-${BRANCH} source: type: Binary binary: {} @@ -29,6 +29,10 @@ objects: name: ruby:2.3 namespace: openshift parameters: -- description: The image stream tag to build to. - displayName: Output image stream tag - name: OUTPUT_IMAGE_STREAM_TAG +- description: The application name. + displayName: Application name + name: APP + value: frontend +- description: The branch being built. + displayName: Branch + name: BRANCH