Update .release.sh
parent
26c49ea3b4
commit
91227e0cbe
17
.release.sh
17
.release.sh
|
@ -9,12 +9,29 @@ VERSION="$(curl -s https://raw.githubusercontent.com/EmpireProject/Empire/master
|
||||||
# UPDATE THE SOURCE CODE
|
# UPDATE THE SOURCE CODE
|
||||||
git pull
|
git pull
|
||||||
|
|
||||||
|
# bump version
|
||||||
|
docker run --rm -v "$PWD":/app treeder/bump patch
|
||||||
|
VERSION=`cat VERSION`
|
||||||
|
echo "version: $VERSION"
|
||||||
|
|
||||||
# ALERT VERSION
|
# ALERT VERSION
|
||||||
echo "Building Version: $VERSION"
|
echo "Building Version: $VERSION"
|
||||||
|
|
||||||
# START BUILD
|
# START BUILD
|
||||||
./.build.sh
|
./.build.sh
|
||||||
|
|
||||||
|
# TAF, PULL, MERGE DEV
|
||||||
|
git checkout -b "dev"
|
||||||
|
git add --all
|
||||||
|
git commit -m "Empire $VERSION Release"
|
||||||
|
git tag -a "$VERSION" -m "Empire $VERSION Release"
|
||||||
|
git push origin "dev"
|
||||||
|
git push origin "dev" --tags
|
||||||
|
git checkout master
|
||||||
|
git merge "dev"
|
||||||
|
git push
|
||||||
|
hub release create dev -m "Empire $VERSION Release"
|
||||||
|
|
||||||
# DOCKER TAG/VERSIONING
|
# DOCKER TAG/VERSIONING
|
||||||
docker tag $USERNAME/$IMAGE:latest $USERNAME/$IMAGE:$VERSION
|
docker tag $USERNAME/$IMAGE:latest $USERNAME/$IMAGE:$VERSION
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue