123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- #!/bin/bash
- version=`cat VERSION`
- echo "version: $version"
- cp ../source/bin/main ../../../deploy/MIVA/source/bin/
- cp ../lib/* ../../../deploy/MIVA/lib
- echo "version: $version" > ../../../deploy/MIVA/version
- ./clear.sh
- ./build.sh
- cd ../
- git add -A
- git commit -m "version $version"
- git tag -a "$version" -m "version $version"
- git push MIVA master
- git push --tags MIVA master
- cd ../../deploy/MIVA
- git add -A
- git commit -m "version $version"
- git tag -a "$version" -m "version $version"
- git push origin master
- git push --tags origin master
- USERNAME=192.168.31.174:8080/miva
- IMAGE=mivainfer
- docker tag $USERNAME/$IMAGE:latest $USERNAME/$IMAGE:$version
- IMAGE=mivadb
- docker tag $USERNAME/$IMAGE:latest $USERNAME/$IMAGE:$version
- IMAGE=mivainfer
- docker push $USERNAME/$IMAGE:latest
- docker push $USERNAME/$IMAGE:$version
- IMAGE=mivadb
- docker push $USERNAME/$IMAGE:latest
- docker push $USERNAME/$IMAGE:$version
- IMAGE=mivadb
- docker rmi $USERNAME/$IMAGE:latest
- docker rmi $USERNAME/$IMAGE:$version
- IMAGE=mivainfer
- docker rmi $USERNAME/$IMAGE:latest
- docker rmi $USERNAME/$IMAGE:$version
|