1234567891011121314151617181920 |
- #!/bin/bash
- registry="172.16.61.95:5000"
- if [ ! -f ver ]; then
- echo 1 > ./ver
- fi
- ver=$(cat ./ver)
- ver=$((10#${ver}+1))
- echo $ver > ./ver
- cd .. && git pull # update code
- docker run --rm -v $(pwd):/home jaikuai/npm-mvn:v3 mvn clean install -Dmaven.test.skip=true -Dmaven.compile.fork=true package
- docker build -t $registry/hz/hz-admin-server:1.1.$ver .
- docker push $registry/hz/hz-admin-server:1.1.$ver
- echo $registry/hz/hz-admin-server:1.1.$ver
|