From 81724765630874ccce410f6c2cfd6a9c65fb76d9 Mon Sep 17 00:00:00 2001 From: Jin-Sun-tts Date: Fri, 1 Nov 2024 14:40:02 -0400 Subject: [PATCH] added step to clear cache before deployment' --- bin/check-and-renew | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/check-and-renew b/bin/check-and-renew index 6783d12a7..7fb273b74 100755 --- a/bin/check-and-renew +++ b/bin/check-and-renew @@ -135,6 +135,8 @@ fi if [[ "$action" == "deploy" ]]; then if [[ $ok_to_proceed == "YES" ]]; then + app_guid=$(cf app --guid "$app_to_check") + cf curl -X POST /v3/apps/${app_guid}/actions/clear_buildpack_cache cf push "$app_to_check" --vars-file vars.$space.yml --strategy rolling else # Recursively call itself until Github Actions times out