Skip to content
Snippets Groups Projects
Commit df32358f authored by iaibrys's avatar iaibrys
Browse files

Add log notes

parent fb4fb42e
No related branches found
No related tags found
No related merge requests found
Pipeline #377 passed
......@@ -10,11 +10,21 @@ CI_PROJECT_PATH=$4
echo "Deploy to ${CI_BUILD_REF_SLUG} server"
docker login -u gitlab-ci-token -p ${CI_JOB_TOKEN} ${CI_REGISTRY}
cd /enote/src/dtu-enote
echo "Stopping all containers"
../../gen/docker-stop.sh
git submodule update --init --recursive
git pull
echo "Deploy all"
bundle exec rake deploy:all
docker images | grep ${CI_PROJECT_PATH}
echo "Cleaning dead containers"
docker ps -q -f status=exited | xargs -I '{}' docker rm -f '{}'
docker ps -q -f status=dead | xargs -I '{}' docker rm -f '{}'
echo "Pruning images"
docker image prune -f
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment