We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d44e3f1 commit 0b4b6f7Copy full SHA for 0b4b6f7
.github/actions/workflow-actions/deploy-app/action.yaml
@@ -139,7 +139,13 @@ runs:
139
echo "Application is healthy!"
140
141
echo "Cleaning up unused resources..."
142
- docker system prune --all --volumes --force --filter "until=24h"
+
143
+ echo "Remove stopped containers older than 24h"
144
+ docker container prune --force --filter "until=24h"
145
+ echo "Remove dangling images (those with <none> tags)"
146
+ docker image prune --force
147
+ echo "Optionally, remove all unused images older than 24h"
148
+ docker image prune --all --force --filter "until=24h"
149
150
echo "=== Deployment completed successfully at $(date) ==="
151
} 2>&1 | tee -a ${{ env.DEPLOY_LOG }}
0 commit comments