Skip to content

Commit

Permalink
Add deploy box cleanup instructions
Browse files Browse the repository at this point in the history
  - Remove 30d+ old Docker images.
  • Loading branch information
arkid15r committed Oct 26, 2023
1 parent d0b17b9 commit c95a4eb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions infrastructure/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -423,3 +423,8 @@ if [[ -n $container_running ]]; then
fi

echo "Deploy completed successfully."

# Remove Docker images created more than 30 days ago.
echo "Cleaning up Docker images."
docker image prune -a --force --filter "until=720h"
echo "Cleanup completed."

0 comments on commit c95a4eb

Please sign in to comment.