From 8371eb36ef701344fbfb0738f26fa1c2be6f8c97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krist=C3=B3f=20T=C3=B3th?= Date: Tue, 27 Mar 2018 13:37:59 +0200 Subject: [PATCH] Implement version tagging in magic starter --- hack/tfw_magic_start.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hack/tfw_magic_start.sh b/hack/tfw_magic_start.sh index 06b59df..b52a33d 100755 --- a/hack/tfw_magic_start.sh +++ b/hack/tfw_magic_start.sh @@ -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()