mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-01-13 07:53:20 -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);
|
||||
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}";
|
||||
|
||||
if [ -z "${LOG_FILE}" ]; then ${BUILD_CMD}; else ${BUILD_CMD} &>> "${LOG_FILE}"; fi
|
||||
|
Loading…
Reference in New Issue
Block a user