Skip to content
Snippets Groups Projects
Commit 24cc2738 authored by Kenneth Reitz's avatar Kenneth Reitz
Browse files

whitelist cache

parent c0fbb072
No related branches found
No related tags found
No related merge requests found
...@@ -145,16 +145,16 @@ bpwatch start clear_old_venvs ...@@ -145,16 +145,16 @@ bpwatch start clear_old_venvs
[ -d $CACHE_DIR/$VIRTUALENV_LOC ] && rm -fr $CACHE_DIR/.heroku/venv $CACHE_DIR/.heroku/src [ -d $CACHE_DIR/$VIRTUALENV_LOC ] && rm -fr $CACHE_DIR/.heroku/venv $CACHE_DIR/.heroku/src
bpwatch stop clear_old_venvs bpwatch stop clear_old_venvs
cd $CACHE_DIR
rm !($WHITELISTED_CACHE_ENTRIES)
cd $BUILD_DIR
# Restore old artifacts from the cache. # Restore old artifacts from the cache.
bpwatch start restore_cache bpwatch start restore_cache
cp -R $CACHE_DIR/$CACHED_DIR . &> /dev/null || true cp -R $CACHE_DIR/$CACHED_DIR . &> /dev/null || true
bpwatch stop restore_cache bpwatch stop restore_cache
# Cleanup what's in the cache.
cd $CACHED_DIR
rm !($WHITELISTED_CACHE_ENTRIES)
cd $BUILD_DIR
set +e set +e
# Create set-aside `.heroku` folder. # Create set-aside `.heroku` folder.
mkdir .heroku &> /dev/null mkdir .heroku &> /dev/null
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment