git tag in upload.sh
This commit is contained in:
parent
7e64e5cff1
commit
26ac11e076
@ -2,5 +2,6 @@
|
||||
|
||||
cd "$(dirname "$0")" || exit 1
|
||||
|
||||
scp target/Homeautomation-1.0-SNAPSHOT.jar media@10.0.0.50:/home/media/java/Homeautomation/Homeautomation.jar.update && \
|
||||
curl -m 2 -s http://10.0.0.50:8082/server/shutdown && echo "Server restarting..." || echo "Failed to restart server!"
|
||||
scp target/Homeautomation-1.0-SNAPSHOT.jar media@10.0.0.50:/home/media/java/Homeautomation/Homeautomation.jar.update &&
|
||||
git tag "$(date +'deploy---%Y-%m-%d---%H-%M-%S')" &&
|
||||
curl -m 2 -s http://10.0.0.50:8082/server/shutdown
|
||||
|
||||
Loading…
Reference in New Issue
Block a user