From 2d167017cb7a597168cce7de02eb36cf61b51599 Mon Sep 17 00:00:00 2001 From: Shoubhik Bose Date: Mon, 12 Nov 2018 20:57:00 +0530 Subject: [PATCH] feat: Dynamic image tagging using release version (#116) for triggering rolling deployments. Needed for use in OpenShift.io/fabric8 boosters https://github.com/fabric8-launcher/launcher-booster-catalog --- .openshiftio/application.yaml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.openshiftio/application.yaml b/.openshiftio/application.yaml index b4476ead..f21180f2 100644 --- a/.openshiftio/application.yaml +++ b/.openshiftio/application.yaml @@ -20,6 +20,15 @@ parameters: displayName: Source Directory value: . required: true + - name: RELEASE_VERSION + description: The location within the source repo of the application + displayName: release version + required: true + - name: SUFFIX_NAME + description: The location within the source repo of the application + displayName: suffix name + value: . + required: true - name: GITHUB_WEBHOOK_SECRET description: A secret string used to configure the GitHub webhook. displayName: GitHub Webhook Secret @@ -50,7 +59,7 @@ objects: output: to: kind: ImageStreamTag - name: 'nodejs-rest-http-crud:latest' + name: 'nodejs-rest-http-crud:${RELEASE_VERSION}' postCommit: {} resources: {} source: @@ -136,7 +145,7 @@ objects: periodSeconds: 3 successThreshold: 1 timeoutSeconds: 1 - image: nodejs-rest-http-crud + image: nodejs-rest-http-crud:${RELEASE_VERSION} name: nodejs-rest-http-crud securityContext: privileged: false @@ -164,7 +173,7 @@ objects: - nodejs-rest-http-crud from: kind: ImageStreamTag - name: 'nodejs-rest-http-crud:latest' + name: 'nodejs-rest-http-crud:${RELEASE_VERSION}' - apiVersion: v1 kind: Route spec: