Skip to content

Commit

Permalink
Merge pull request #4960 from GSA/add-step-to-clear-cache
Browse files Browse the repository at this point in the history
add cache clearing step to prevent deployment failure
  • Loading branch information
FuhuXia authored Nov 1, 2024
2 parents 087ebb3 + 8172476 commit ab8665d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/check-and-renew
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ab8665d

Please sign in to comment.