Added the ability to force push and force tag creation.
This commit is contained in:
parent
38b5e7dc65
commit
798f112498
@ -1,5 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
# You can pass --force as first parameter to force push and tag creation.
|
||||||
BASE_VERSION="v1.6"
|
BASE_VERSION="v1.6"
|
||||||
TODAYS_VERSION="1"
|
TODAYS_VERSION="1"
|
||||||
|
|
||||||
@ -7,8 +7,8 @@ VERSION="${BASE_VERSION}.$(date '+%y%m%j')$TODAYS_VERSION"
|
|||||||
|
|
||||||
echo "Creating tag $VERSION"
|
echo "Creating tag $VERSION"
|
||||||
|
|
||||||
git tag $VERSION
|
git tag $VERSION $1
|
||||||
|
|
||||||
echo "Pushing tag"
|
echo "Pushing tag"
|
||||||
|
|
||||||
git push origin $VERSION
|
git push origin $VERSION $1
|
||||||
|
Loading…
Reference in New Issue
Block a user