fix: workflow fix
This commit is contained in:
parent
a5909d757e
commit
09411cdd7a
5
.cursor/worktrees.json
Normal file
5
.cursor/worktrees.json
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"setup-worktree": [
|
||||
"npm install"
|
||||
]
|
||||
}
|
||||
6
.github/workflows/deploy-ec2.yml
vendored
6
.github/workflows/deploy-ec2.yml
vendored
@ -94,9 +94,9 @@ jobs:
|
||||
# Basic disk space check (do not touch volumes)
|
||||
echo "=== DISK SPACE CHECK ==="
|
||||
df -h
|
||||
AVAILABLE_SPACE=\$(df -BG / | tail -1 | awk '{print \$4}' | sed 's/G//')
|
||||
if [ "\$AVAILABLE_SPACE" -lt 5 ]; then
|
||||
echo "⚠️ Low disk space: \${AVAILABLE_SPACE}GB available. Cleaning up dangling images..."
|
||||
AVAILABLE_SPACE=$(df -BG / | tail -1 | awk '{print $4}' | sed 's/G//')
|
||||
if [ "$AVAILABLE_SPACE" -lt 5 ]; then
|
||||
echo "⚠️ Low disk space: ${AVAILABLE_SPACE}GB available. Cleaning up dangling images..."
|
||||
docker system prune -af --volumes=false || true
|
||||
docker image prune -af || true
|
||||
df -h
|
||||
|
||||
Loading…
Reference in New Issue
Block a user