]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-pr-render-docs: Clean up old doc renders 1424/head
authorDavid Galloway <dgallowa@redhat.com>
Thu, 24 Oct 2019 18:24:29 +0000 (14:24 -0400)
committerDavid Galloway <dgallowa@redhat.com>
Fri, 25 Oct 2019 15:05:44 +0000 (11:05 -0400)
Since these don't get stored on the larger volume attached to docs.ceph.com, they can fill up the root disk without being cleaned up.

Signed-off-by: David Galloway <dgallowa@redhat.com>
ceph-pr-render-docs/build/build

index f6762f0e4a408dbef095a4f65d448e0b90eac234..4369850a7fca3c481e6cb99f1826ad52a87eafd6 100644 (file)
@@ -15,7 +15,6 @@ if [ -z "$ghprbPullId" ]; then
     PR_ID="manual"
 fi
 
-
 ./admin/build-doc
 
 # publish docs to http://docs.ceph.com/ceph-prs/$PR_ID/
@@ -24,6 +23,10 @@ rsync -auv --delete build-doc/output/html/* "/var/ceph-prs/$PR_ID/"
 
 set +e
 set +x
+
+# Cleanup docs rendered 90+ days ago
+find /var/ceph-prs/ -mindepth 1 -maxdepth 1 -mtime +90 -exec rm -rvf {} \;
+
 echo
 echo "Docs available to preview at:"
 echo