Implement version tagging in magic starter

This commit is contained in:
Kristóf Tóth 2018-03-27 13:37:59 +02:00
parent 5a5045ff3b
commit 8371eb36ef
1 changed files with 3 additions and 1 deletions

View File

@ -27,7 +27,9 @@ run_frontend()
build_baseimage()
{
cd $BASEIMAGE_PATH
docker build -t $BASEIMAGE_NAME .
VERSION="$(cat VERSION | head -n 1)"
DATE="$(date +%Y%m%d)"
docker build -t "${BASEIMAGE_NAME}:${VERSION}-${DATE}" .
}
run_backend()