build.sh 324 B

123456789
  1. #!/bin/bash
  2. set -e
  3. date=`date +%Y%m%d_%H%M%S`
  4. #git pull
  5. mvn -s /etc/maven/settings.xml -DskipTests=true clean package
  6. docker build -t feick/diagnosis:$date .
  7. #sed -i "s/\${date}/$(echo $date)/g" diagnosis.yaml
  8. #kubectl apply -f deployment.yaml
  9. #docker run --rm -p 9090:8080 feick/diagnosis:$date --spring.profiles.active=dev