Skip to content

Commit 0307b4d

Browse files
Changed start.sh to checkout the current release tag
1 parent 5a40bc7 commit 0307b4d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

start.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,12 +125,14 @@ function update {
125125
if [ ! $? -eq 0 ]; then
126126
echo "Updating failed. Please check the repository on GitHub."
127127
fi
128-
echo "Pulling current version via git."
129-
git pull
128+
echo "Pulling latest release via git."
129+
git fetch --tags
130+
latestTag=$(git describe --tags `git rev-list --tags --max-count=1`)
131+
git checkout $latestTag
130132
if [ ! $? -eq 0 ]; then
131133
echo "Updating failed. Please check the repository on GitHub."
132134
fi
133-
echo "Pulling current images."
135+
echo "Pulling docker images."
134136
docker-compose pull
135137
if [ ! $? -eq 0 ]; then
136138
echo "Updating failed. Please check the repository on GitHub."

0 commit comments

Comments
 (0)