1
0
mirror of https://github.com/fabianonline/telegram_backup.git synced 2024-12-26 14:45:34 +00:00

Modified deploy.sh to set the tag on master, not on stable, so that git describe for versions built from master gives usable output.

This commit is contained in:
Fabian Schlenz 2018-03-08 22:12:29 +01:00
parent 3c5a8e9d38
commit 9a9e4284d9

View File

@ -40,15 +40,15 @@ sed -i "s/ENV JAR_VERSION .\+/ENV JAR_VERSION $VERSION/g" Dockerfile || error "C
echo "Committing the new Dockerfile..."
git commit -m "Bumping the version to $VERSION" Dockerfile || error "Couldn't commit the new Dockerfile."
echo "Tagging the new version..."
git tag -a "$VERSION" -m "Version $VERSION" || error
echo "Checking out stable..."
git checkout stable || error
echo "Merging master into stable..."
git merge --no-ff -m "Merging master into stable for version $VERSION" master || error
echo "Tagging the new version..."
git tag -a "$VERSION" -m "Version $VERSION" || error
echo "Pushing all to Github..."
git push --all || error