Update .release.sh

readme-wiki
⭕Alexander Rymdeko-Harvey 2017-12-21 17:11:51 -05:00 committed by GitHub
parent 26c49ea3b4
commit 91227e0cbe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 17 additions and 0 deletions

View File

@ -9,12 +9,29 @@ VERSION="$(curl -s https://raw.githubusercontent.com/EmpireProject/Empire/master
# UPDATE THE SOURCE CODE
git pull
# bump version
docker run --rm -v "$PWD":/app treeder/bump patch
VERSION=`cat VERSION`
echo "version: $VERSION"
# ALERT VERSION
echo "Building Version: $VERSION"
# START BUILD
./.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 $USERNAME/$IMAGE:latest $USERNAME/$IMAGE:$VERSION