sophia.events/bin/3-deploy.sh
2018-02-15 13:32:56 +01:00

12 lines
253 B
Bash
Executable file

#!/bin/sh
version=$1
if [ "$version" = "" ]; then
version="latest"
fi
# Pull new image
docker pull lucj/sophia.events:$version
# Update www service with the newly retrieved image
docker service update sophia_www --image=lucj/sophia.events:$version