Skip to content

Commit 91227e0

Browse files
Update .release.sh
1 parent 26c49ea commit 91227e0

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.release.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,29 @@ VERSION="$(curl -s https://raw.githubusercontent.com/EmpireProject/Empire/master
99
# UPDATE THE SOURCE CODE
1010
git pull
1111

12+
# bump version
13+
docker run --rm -v "$PWD":/app treeder/bump patch
14+
VERSION=`cat VERSION`
15+
echo "version: $VERSION"
16+
1217
# ALERT VERSION
1318
echo "Building Version: $VERSION"
1419

1520
# START BUILD
1621
./.build.sh
1722

23+
# TAF, PULL, MERGE DEV
24+
git checkout -b "dev"
25+
git add --all
26+
git commit -m "Empire $VERSION Release"
27+
git tag -a "$VERSION" -m "Empire $VERSION Release"
28+
git push origin "dev"
29+
git push origin "dev" --tags
30+
git checkout master
31+
git merge "dev"
32+
git push
33+
hub release create dev -m "Empire $VERSION Release"
34+
1835
# DOCKER TAG/VERSIONING
1936
docker tag $USERNAME/$IMAGE:latest $USERNAME/$IMAGE:$VERSION
2037

0 commit comments

Comments
 (0)