Browse Source

修改镜像命名规则

Feick 5 years ago
parent
commit
a33783de51
2 changed files with 2 additions and 2 deletions
  1. 1 1
      buildAndRun.sh
  2. 1 1
      src/main/frontend/buildAndRun.sh

+ 1 - 1
buildAndRun.sh

@@ -1,6 +1,6 @@
 #!/bin/bash
 set -e
-date=`date +%Y%m%d`
+date=`date +%Y%m%d_%H%M%S`
 git pull
 mvn -s /etc/maven/settings.xml -DskipTests=true clean package
 docker build -t feick/diagnosis:$date .

+ 1 - 1
src/main/frontend/buildAndRun.sh

@@ -1,7 +1,7 @@
 set -e
 echo "build and run frontend"
 #npm run build
-date=`date +%Y%m%d`
+date=`date +%Y%m%d_%H%M%S`
 
 docker build -t feick/diagnosis-frontend:$date .
 #docker run --rm -p 9091:80 feick/diagnosis-frontend:$date