Helper scripts (#298)

* Added helper scripts

* Added commit tag to version tag to builds from master

* Restored script for Travis

* Restored script for Jenkins

* Restored script for Jenkins

* Restored script for Jenkins
This commit is contained in:
Jesus Federico
2018-10-16 14:28:21 -04:00
committed by GitHub
parent ec250f3ed5
commit 1617b7dba1
6 changed files with 50 additions and 2 deletions

17
scripts/deploy.sh Executable file
View File

@ -0,0 +1,17 @@
#!/bin/bash
STATUS="Status: Downloaded newer image for bigbluebutton/greenlight:v2"
new_status=$(sudo docker pull bigbluebutton/greenlight:v2 | grep Status:)
echo $new_status
if [ "$STATUS" == "$new_status" ]
then
cd /home/ubuntu/greenlight
sudo docker-compose down
sudo docker rmi $(sudo docker images -f dangling=true -q)
sudo docker-compose up -d
fi
exit 0