|
@@ -4,18 +4,12 @@ version=`cat VERSION`
|
|
|
|
|
|
echo "version: $version"
|
|
|
|
|
|
-# SET THE FOLLOWING VARIABLES
|
|
|
-# docker hub username
|
|
|
-USERNAME=192.168.31.174:5000
|
|
|
-IMAGE=mivainfer
|
|
|
-
|
|
|
cp ../source/bin/main ../../../deploy/MIVA/source/bin/
|
|
|
cp ../lib/* ../../../deploy/MIVA/lib
|
|
|
# cp -rf ../source/config/* ../../../deploy/MIVA/source/config/
|
|
|
echo "version: $version" > ../../../deploy/MIVA/version
|
|
|
|
|
|
./clear.sh
|
|
|
-
|
|
|
# run build
|
|
|
./build.sh
|
|
|
|
|
@@ -35,8 +29,29 @@ git tag -a "$version" -m "version $version"
|
|
|
# git push
|
|
|
# git push --tags
|
|
|
|
|
|
+# SET THE FOLLOWING VARIABLES
|
|
|
+# docker hub username
|
|
|
+USERNAME=192.168.31.174:5000
|
|
|
+IMAGE=mivainfer
|
|
|
+docker tag $USERNAME/$IMAGE:latest $USERNAME/$IMAGE:$version
|
|
|
+IMAGE=mivadb
|
|
|
docker tag $USERNAME/$IMAGE:latest $USERNAME/$IMAGE:$version
|
|
|
-
|
|
|
# push it
|
|
|
+# mivainfer
|
|
|
+IMAGE=mivainfer
|
|
|
docker push $USERNAME/$IMAGE:latest
|
|
|
-docker push $USERNAME/$IMAGE:$version
|
|
|
+docker push $USERNAME/$IMAGE:$version
|
|
|
+
|
|
|
+# mivadb
|
|
|
+IMAGE=mivadb
|
|
|
+docker push $USERNAME/$IMAGE:latest
|
|
|
+docker push $USERNAME/$IMAGE:$version
|
|
|
+
|
|
|
+# remove
|
|
|
+IMAGE=mivadb
|
|
|
+docker rmi $USERNAME/$IMAGE:latest
|
|
|
+docker rmi $USERNAME/$IMAGE:$version
|
|
|
+
|
|
|
+IMAGE=mivainfer
|
|
|
+docker rmi $USERNAME/$IMAGE:latest
|
|
|
+docker rmi $USERNAME/$IMAGE:$version
|