Skip to content

Commit

Permalink
Changed start.sh to checkout the current release tag
Browse files Browse the repository at this point in the history
  • Loading branch information
merlinschumacher authored Oct 20, 2019
1 parent 5a40bc7 commit 0307b4d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down

0 comments on commit 0307b4d

Please sign in to comment.