Prune unused docker images, that consume resources

This commit is contained in:
Murtadha 2024-07-14 01:04:49 -04:00
parent 70407f1887
commit 3da628a36a

View file

@ -41,5 +41,6 @@ pipeline:
- docker stop frontend || true - docker stop frontend || true
- docker rm frontend || true - docker rm frontend || true
- docker run -d --name frontend -p 5173:80 frontend:${CI_COMMIT_SHA} - docker run -d --name frontend -p 5173:80 frontend:${CI_COMMIT_SHA}
- docker system prune -f # Clean up unused containers and images
when: when:
branch: master branch: master