mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-01-27 14:43:14 -05:00
added version-tag to docker image
This commit is contained in:
parent
cbc3ab49b6
commit
2a179e76a5
@ -24,7 +24,8 @@ function runDockerBuild()
|
|||||||
STARTTS=$(date +%s);
|
STARTTS=$(date +%s);
|
||||||
ARGS=$@;
|
ARGS=$@;
|
||||||
|
|
||||||
BUILD_CMD="docker build -f docker/Dockerfile --force-rm --no-cache ${ARGS} -t meshcentral .";
|
APP_VERSION=$(grep -o '"version":\s*"[^"]*"' ./package.json | cut -f4- -d\" | tr -d '"')
|
||||||
|
BUILD_CMD="docker build -f docker/Dockerfile --force-rm --no-cache ${ARGS} -t meshcentral:latest -t meshcentral:${APP_VERSION} .";
|
||||||
appendOutput "Current build: ${BUILD_CMD}";
|
appendOutput "Current build: ${BUILD_CMD}";
|
||||||
|
|
||||||
if [ -z "${LOG_FILE}" ]; then ${BUILD_CMD}; else ${BUILD_CMD} &>> "${LOG_FILE}"; fi
|
if [ -z "${LOG_FILE}" ]; then ${BUILD_CMD}; else ${BUILD_CMD} &>> "${LOG_FILE}"; fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user