Skip to content

Commit

Permalink
feat: Dynamic image tagging for deployments (#120)
Browse files Browse the repository at this point in the history
* fix template for use with new osio pipeline lib

* update builder imagestream name

* add default template version

* update description

* use the same version as that in package.json
  • Loading branch information
sbose78 authored and lholmquist committed Dec 3, 2018
1 parent 7383684 commit d71a382
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .openshiftio/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ parameters:
displayName: Source Directory
value: .
required: true
- name: RELEASE_VERSION
description: The version used to tag image artifacts
displayName: release version
value: '2.0.1'
required: true
- name: GITHUB_WEBHOOK_SECRET
description: A secret string used to configure the GitHub webhook.
displayName: GitHub Webhook Secret
Expand All @@ -35,7 +40,7 @@ objects:
- apiVersion: v1
kind: ImageStream
metadata:
name: runtime
name: runtime-centos7-s2i-nodejs-10-x
spec:
tags:
- name: latest
Expand All @@ -50,7 +55,7 @@ objects:
output:
to:
kind: ImageStreamTag
name: 'nodejs-rest-http:latest'
name: 'nodejs-rest-http:${RELEASE_VERSION}'
postCommit: {}
resources: {}
source:
Expand All @@ -63,7 +68,7 @@ objects:
sourceStrategy:
from:
kind: ImageStreamTag
name: 'runtime:latest'
name: 'runtime-centos7-s2i-nodejs-10-x:latest'
incremental: true
triggers:
- github:
Expand Down Expand Up @@ -117,7 +122,7 @@ objects:
scheme: HTTP
initialDelaySeconds: 60
periodSeconds: 30
image: nodejs-rest-http
image: nodejs-rest-http:${RELEASE_VERSION}
name: nodejs-rest-http
securityContext:
privileged: false
Expand Down Expand Up @@ -145,7 +150,7 @@ objects:
- nodejs-rest-http
from:
kind: ImageStreamTag
name: 'nodejs-rest-http:latest'
name: 'nodejs-rest-http:${RELEASE_VERSION}'
- apiVersion: v1
kind: Route
metadata:
Expand Down

0 comments on commit d71a382

Please sign in to comment.