mirror of https://github.com/rancher/dashboard.git
Pass version & commit
This commit is contained in:
parent
c8fe74de2f
commit
fef2645f4f
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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}..."
|
||||
|
|
|
|||
Loading…
Reference in New Issue