- #!/bin/bash
- set -e
- 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 .
- #sed -i "s/\${date}/$(echo $date)/g" diagnosis.yaml
- #kubectl apply -f deployment.yaml
- #docker run --rm -p 9090:8080 feick/diagnosis:$date --spring.profiles.active=dev
|