2022-03-22 16:12:14 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2022-09-14 10:32:00 +00:00
|
|
|
echo "Creating tag $1"
|
2022-03-22 16:12:14 +00:00
|
|
|
|
2022-09-14 10:32:00 +00:00
|
|
|
TAG="v$1"
|
|
|
|
git tag -a ${TAG} -m ${TAG}
|
2022-03-22 16:12:14 +00:00
|
|
|
|
2022-09-14 10:32:00 +00:00
|
|
|
if [[ "$@" == *'--from-ci'* ]]
|
|
|
|
then
|
|
|
|
echo "Tag created. HANDLE IN CI"
|
|
|
|
else
|
|
|
|
echo "Pushing tag"
|
|
|
|
git push origin ${TAG}
|
|
|
|
fi
|