From 0307b4de3b40500a30630f7722428d05aeb42b8f Mon Sep 17 00:00:00 2001 From: Merlin Schumacher Date: Sun, 20 Oct 2019 18:25:53 +0200 Subject: [PATCH] Changed start.sh to checkout the current release tag --- start.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/start.sh b/start.sh index 316a9b3..e3ee5f0 100755 --- a/start.sh +++ b/start.sh @@ -125,12 +125,14 @@ function update { if [ ! $? -eq 0 ]; then echo "Updating failed. Please check the repository on GitHub." fi - echo "Pulling current version via git." - git pull + echo "Pulling latest release via git." + git fetch --tags + latestTag=$(git describe --tags `git rev-list --tags --max-count=1`) + git checkout $latestTag if [ ! $? -eq 0 ]; then echo "Updating failed. Please check the repository on GitHub." fi - echo "Pulling current images." + echo "Pulling docker images." docker-compose pull if [ ! $? -eq 0 ]; then echo "Updating failed. Please check the repository on GitHub."