feat: purge cache on every review app deploy

This ensures we test the currently built nginx binary.
This commit is contained in:
Jose Diaz-Gonzalez 2022-09-10 17:53:28 -04:00
parent e28d2049e5
commit 1a28ec8509
1 changed files with 3 additions and 0 deletions

View File

@ -1,6 +1,9 @@
#!/bin/sh -l
ls -lah
if [ "$IS_REVIEW_APP" = "true" ]; then
echo "purging repo cache"
ssh "$SSH_REMOTE" -- repo:purge-cache "$APP_NAME"
echo "https://github.com/${GITHUB_REPOSITORY}.git#$GITHUB_SHA" > .buildpacks
git add .buildpacks
git config --global user.name 'Dokku Bot'