2018-05-24 20:32:34 +00:00
|
|
|
#!/bin/bash
|
2018-05-24 20:36:20 +00:00
|
|
|
# You can pass --force as first parameter to force push and tag creation.
|
2018-05-24 20:32:34 +00:00
|
|
|
BASE_VERSION="v1.6"
|
|
|
|
TODAYS_VERSION="1"
|
|
|
|
|
|
|
|
VERSION="${BASE_VERSION}.$(date '+%y%m%j')$TODAYS_VERSION"
|
|
|
|
|
|
|
|
echo "Creating tag $VERSION"
|
|
|
|
|
2018-05-24 20:36:20 +00:00
|
|
|
git tag $VERSION $1
|
2018-05-24 20:32:34 +00:00
|
|
|
|
|
|
|
echo "Pushing tag"
|
|
|
|
|
2018-05-24 20:36:20 +00:00
|
|
|
git push origin $VERSION $1
|