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

add comment in update.sh

parent 667d10b2
Pipeline #3194 passed with stages
in 1 minute and 45 seconds
#connect to private container registry
echo "$3" | docker login -u $2 --password-stdin $1 echo "$3" | docker login -u $2 --password-stdin $1
#pull images used in docker-compose
docker-compose pull docker-compose pull
#retart or up docker services with docker-compose
container_name=postal container_name=postal
if sudo docker container ls -a --format '{{.Names}}' | grep -Eq "^${container_name}\$"; then if sudo docker container ls -a --format '{{.Names}}' | grep -Eq "^${container_name}\$"; then
docker-compose restart docker-compose restart
else else
docker-compose up -d --remove-orphans docker-compose up -d --remove-orphans
fi fi
#clean docker environment
docker image prune --force docker image prune --force
docker container prune --force docker container prune --force
docker volume prune --force docker volume prune --force
#logout docker registry
docker logout $1 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