Prune unused docker images, that consume resources
This commit is contained in:
parent
3da628a36a
commit
3a30900757
1 changed files with 2 additions and 1 deletions
|
|
@ -41,6 +41,7 @@ pipeline:
|
|||
- docker stop frontend || true
|
||||
- docker rm frontend || true
|
||||
- docker run -d --name frontend -p 5173:80 frontend:${CI_COMMIT_SHA}
|
||||
- docker system prune -f # Clean up unused containers and images
|
||||
- docker image prune -f # Remove dangling images
|
||||
- docker system prune -f --volumes # Clean up unused containers, images, and volumes
|
||||
when:
|
||||
branch: master
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue