1
0
mirror of https://github.com/avatao-content/test-tutorial-framework synced 2024-11-14 16:37:18 +00:00

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

View File

@ -27,7 +27,9 @@ run_frontend()
build_baseimage() build_baseimage()
{ {
cd $BASEIMAGE_PATH 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() run_backend()