From 1a28ec850949a57e48c740857195e8e51a19ad80 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sat, 10 Sep 2022 17:53:28 -0400 Subject: [PATCH] feat: purge cache on every review app deploy This ensures we test the currently built nginx binary. --- bin/ci-pre-deploy | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/ci-pre-deploy b/bin/ci-pre-deploy index c083098..9630f00 100644 --- a/bin/ci-pre-deploy +++ b/bin/ci-pre-deploy @@ -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'