Pass version & commit

This commit is contained in:
Vincent Fiduccia 2020-08-31 16:18:29 -07:00
parent c8fe74de2f
commit fef2645f4f
No known key found for this signature in database
GPG Key ID: 2B29AD6BB2BB2582
2 changed files with 5 additions and 1 deletions

View File

@ -43,6 +43,10 @@ if ( resourceBase && !resourceBase.endsWith('/') ) {
console.log(`Build: ${ dev ? 'Development' : 'Production' }`); // eslint-disable-line no-console
if ( !dev ) {
console.log(`Version: ${ version } (${ commit })`); // eslint-disable-line no-console
}
if ( resourceBase ) {
console.log(`Resource Base URL: ${ resourceBase }`); // eslint-disable-line no-console
}

View File

@ -19,7 +19,7 @@ echo "TAG: ${GIT_TAG:-<none>}"
DIR=${GIT_TAG:-$COMMIT_BRANCH}
echo "Building..."
COMMMIT=${COMMIT} VERSION=${VERSION} OOUTPUT_DIR=dist/${DIR}-embedded ROUTER_BASE='/dashboard' yarn run build --spa
COMMMIT=${COMMIT} VERSION=${VERSION} OUTPUT_DIR=dist/${DIR}-embedded ROUTER_BASE='/dashboard' yarn run build --spa
TARBALL=${DIR}.tar.gz
echo "Compressing to ${TARBALL}..."