sophia.events/bin/3-deploy.sh

13 lines
253 B
Bash
Raw Normal View History

2018-01-24 21:55:57 +00:00
#!/bin/sh
version=$1
if [ "$version" = "" ]; then
2018-01-26 08:41:40 +00:00
version="latest"
2018-01-24 21:55:57 +00:00
fi
# Pull new image
2018-01-28 19:36:17 +00:00
docker pull lucj/sophia.events:$version
2018-01-24 21:55:57 +00:00
2018-02-02 14:16:10 +00:00
# Update www service with the newly retrieved image
2018-02-02 20:01:13 +00:00
docker service update sophia_www --image=lucj/sophia.events:$version