From 7bab6253cfd2efd08f4c82e7f4a0e1b2e8385756 Mon Sep 17 00:00:00 2001 From: Riccardo Di Dato Date: Sun, 25 Sep 2022 15:43:49 +0200 Subject: [PATCH] Automation --- scripts/core.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/core.sh b/scripts/core.sh index 4256d40..56f0613 100755 --- a/scripts/core.sh +++ b/scripts/core.sh @@ -180,6 +180,9 @@ if [[ $DEBUG_MODE -eq 1 ]]; then fi if [[ $DEPLOY_TEST_MODE -eq 1 ]]; then + if [[ $AUTOTAG -eq 1 ]]; then + TAG=`./latest-ver.sh -${TAG_OPTS}` + fi OUT_FOLDER="/home/$PROJECT_AUTHOR/$PROJECT_BUILDNAME/test" mkdir -p $OUT_FOLDER ./generateComposeFolder.sh -s -o "$OUT_FOLDER" -t $TAG @@ -189,6 +192,9 @@ if [[ $DEPLOY_TEST_MODE -eq 1 ]]; then fi if [[ $DEPLOY_PROD_MODE -eq 1 ]]; then + if [[ $AUTOTAG -eq 1 ]]; then + TAG=`./latest-ver.sh -${TAG_OPTS}` + fi OUT_FOLDER="/home/$PROJECT_AUTHOR/$PROJECT_BUILDNAME/production" mkdir -p $OUT_FOLDER ./generateComposeFolder.sh -p -o "$OUT_FOLDER" -t $TAG