diff --git a/.cursor/worktrees.json b/.cursor/worktrees.json new file mode 100644 index 0000000..77e9744 --- /dev/null +++ b/.cursor/worktrees.json @@ -0,0 +1,5 @@ +{ + "setup-worktree": [ + "npm install" + ] +} diff --git a/.github/workflows/deploy-ec2.yml b/.github/workflows/deploy-ec2.yml index f9b7127..1be812e 100644 --- a/.github/workflows/deploy-ec2.yml +++ b/.github/workflows/deploy-ec2.yml @@ -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