Skip to content

Commit

Permalink
feat: Dynamic image tagging using release version (#116)
Browse files Browse the repository at this point in the history
for triggering rolling deployments. Needed for use in OpenShift.io/fabric8 boosters 
https://github.com/fabric8-launcher/launcher-booster-catalog
  • Loading branch information
sbose78 authored and lholmquist committed Nov 12, 2018
1 parent 977366d commit 2d16701
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .openshiftio/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 2d16701

Please sign in to comment.