Image cleanup cronjob - on the dev & prod web-apps servers
Overview
This document outlines the implementation of an automated GitHub Action for cleaning up Docker images deployed on a server using Docker Compose. The action is designed to run daily and remove unused images to free up disk space on the server.
This GitHub Action is scheduled to run every day, but if you want to manually start it, click on Run Workflow and choose the necessary branch from Use workflow from.
Conclusion
By above GitHub action, we have set up an automated GitHub Action to clean up Docker images on your server daily, ensuring that disk space is efficiently managed and available for new deployments.