mirror of
https://github.com/openziti/ziti.git
synced 2026-10-12 15:28:05 +00:00
7950bade6f
* ZT-450: setting up build-automation
17 lines
474 B
Bash
Executable File
17 lines
474 B
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# This script is invoked from the pre-bump-semver.sh script after a semver bump
|
|
# but before that bump is pushed back to the Git server.
|
|
#
|
|
|
|
MANIFEST="common/version/VERSION"
|
|
declare -x SCRIPTPATH="${0}"
|
|
FULLPATH=${SCRIPTPATH%/*}/$MANIFEST
|
|
|
|
if [ -f $FULLPATH ]
|
|
then
|
|
LINE=$(grep -o ${FULLPATH} -e '^[0]\.[0-9]*\.[0-9]*');
|
|
IFS='.' read -r -a array <<< "$LINE"
|
|
$(git tag -a ${array[0]}.${array[1]}.${array[2]} -m "${array[0]}.${array[1]}.${array[2]}")
|
|
fi;
|