Skip to content
This repository was archived by the owner on Apr 24, 2018. It is now read-only.

Commit 8ad55ed

Browse files
committed
Add command printing app version for external use
1 parent 795a581 commit 8ad55ed

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

vagga.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ containers:
77
NPM_CONFIG_LOGLEVEL: info
88
HOSTNAME_URL: eventsmonkey.itkpi.pp.ua
99
APP_VERSION_FILE: /.app-version
10+
APP_NAME: Events Parser
1011
setup:
1112
- !Ubuntu xenial
1213
- !Env
@@ -138,3 +139,11 @@ commands:
138139
run: |
139140
export APP_VERSION=`cat $APP_VERSION_FILE`
140141
npm start
142+
version: !Command
143+
container: nodejs-7-ubuntu-bin
144+
# add current version of the app to env vars
145+
run: |
146+
export APP_VERSION=`cat $APP_VERSION_FILE`
147+
echo -n $APP_NAME 'version: ' >&2
148+
echo -n $APP_VERSION
149+
echo >&2

0 commit comments

Comments
 (0)