Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

add cache clearing step to prevent deployment failure #4960

Merged
merged 1 commit into from
Nov 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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