Skip to content

Commit 2d16701

Browse files
sbose78lholmquist
authored andcommitted
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
1 parent 977366d commit 2d16701

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.openshiftio/application.yaml

+12-3
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,15 @@ parameters:
2020
displayName: Source Directory
2121
value: .
2222
required: true
23+
- name: RELEASE_VERSION
24+
description: The location within the source repo of the application
25+
displayName: release version
26+
required: true
27+
- name: SUFFIX_NAME
28+
description: The location within the source repo of the application
29+
displayName: suffix name
30+
value: .
31+
required: true
2332
- name: GITHUB_WEBHOOK_SECRET
2433
description: A secret string used to configure the GitHub webhook.
2534
displayName: GitHub Webhook Secret
@@ -50,7 +59,7 @@ objects:
5059
output:
5160
to:
5261
kind: ImageStreamTag
53-
name: 'nodejs-rest-http-crud:latest'
62+
name: 'nodejs-rest-http-crud:${RELEASE_VERSION}'
5463
postCommit: {}
5564
resources: {}
5665
source:
@@ -136,7 +145,7 @@ objects:
136145
periodSeconds: 3
137146
successThreshold: 1
138147
timeoutSeconds: 1
139-
image: nodejs-rest-http-crud
148+
image: nodejs-rest-http-crud:${RELEASE_VERSION}
140149
name: nodejs-rest-http-crud
141150
securityContext:
142151
privileged: false
@@ -164,7 +173,7 @@ objects:
164173
- nodejs-rest-http-crud
165174
from:
166175
kind: ImageStreamTag
167-
name: 'nodejs-rest-http-crud:latest'
176+
name: 'nodejs-rest-http-crud:${RELEASE_VERSION}'
168177
- apiVersion: v1
169178
kind: Route
170179
spec:

0 commit comments

Comments
 (0)