Automated Docker Image Cleanup GitHub Action
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.
GitHub Action Workflow
To automate the image cleanup process, the GitHub Action workflow that runs daily is - https://github.com/0chain/web-apps/actions/workflows/server-cleanup.yaml
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.
Last updated