From f52470c5835c609e3c25936b87259dc2e97e3fc5 Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Mon, 10 Jul 2017 22:13:27 +0200 Subject: [PATCH] Update create_frontend_env.sh --- .../frontend-build-env/create_frontend_env.sh | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/build-scripts/frontend-build-env/create_frontend_env.sh b/build-scripts/frontend-build-env/create_frontend_env.sh index 8e3e658..58e3c37 100755 --- a/build-scripts/frontend-build-env/create_frontend_env.sh +++ b/build-scripts/frontend-build-env/create_frontend_env.sh @@ -3,6 +3,7 @@ set -e DOCKER_IMAGE=${DOCKER_IMAGE:="homeassistant/frontend-build-env"} DOCKER_PUSH="false" +DOCKER_TAG="$(date +%Y%m%d)" # Get the absolute script location pushd "$(dirname "$0")" > /dev/null 2>&1 @@ -18,8 +19,6 @@ Options: -h, --help Display this help and exit. - -t, --tag TAG - Version/Tag of $DOCKER_IMAGE. -p, --push Upload the build to docker hub. EOF @@ -33,10 +32,6 @@ while [[ $# -gt 0 ]]; do help exit 0 ;; - -t|--tag) - DOCKER_TAG=$2 - shift - ;; -p|--push) DOCKER_PUSH="true" ;; @@ -47,12 +42,6 @@ while [[ $# -gt 0 ]]; do shift done -if [ -z "$DOCKER_TAG" ]; then - echo "[ERROR] please set a tag!" - help - exit 1 -fi - # Build docker build --pull --tag "$DOCKER_IMAGE:$DOCKER_TAG" -f "$SCRIPTPATH/Dockerfile" "$SCRIPTPATH"