Compare commits
2 Commits
a01afef599
...
97fcf88c61
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
97fcf88c61 | ||
|
|
003b6f3bdb |
@@ -83,7 +83,7 @@ jobs:
|
||||
fi
|
||||
|
||||
echo "=== 7. Cleanup old releases ==="
|
||||
find "${DEPLOY_BASE}/releases" -mindepth 1 -maxdepth 1 -type d | sort | head -n -5 | xargs -r rm -rf
|
||||
ls -dt "${DEPLOY_BASE}"/releases/*/ | tail -n +6 | xargs -r rm -rf
|
||||
|
||||
echo "=== 8. Cleanup temp ==="
|
||||
rm -rf "${CLONE_DIR}"
|
||||
|
||||
Reference in New Issue
Block a user