From: David Galloway Date: Thu, 24 Oct 2019 18:24:29 +0000 (-0400) Subject: ceph-pr-render-docs: Clean up old doc renders X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a725e59c72b77484aea40600552da8c751a09fbd;p=ceph-build.git ceph-pr-render-docs: Clean up old doc renders 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 --- diff --git a/ceph-pr-render-docs/build/build b/ceph-pr-render-docs/build/build index f6762f0e..4369850a 100644 --- a/ceph-pr-render-docs/build/build +++ b/ceph-pr-render-docs/build/build @@ -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