Commit dd5e153e authored by Jérémie Lanceleur's avatar Jérémie Lanceleur

improve update.sh

parent 1dac6a59
Pipeline #3192 passed with stages
in 1 minute and 26 seconds
echo "$3" | docker login -u $2 --password-stdin $1
docker-compose pull
docker-compose stop
docker-compose up -d --remove-orphans
container_name=postal
if sudo docker container ls -a --format '{{.Names}}' | grep -Eq "^${container_name}\$"; then
docker-compose restart
else
docker-compose up -d --remove-orphans
fi
docker image prune --force
docker container prune --force
docker volume prune --force
docker logout $1
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment