Skip to content

Commit

Permalink
added step for cf command
Browse files Browse the repository at this point in the history
  • Loading branch information
Jin-Sun-tts committed Nov 1, 2024
1 parent 98eb137 commit 1fd63cc
Showing 1 changed file with 18 additions and 11 deletions.
29 changes: 18 additions & 11 deletions .github/workflows/commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,17 +73,24 @@ jobs:
secrets: inherit

clear-cache-development:
name: Clear Buildpack Cache (development)
runs-on: ubuntu-latest
environment: development
steps:
- name: Clear buildpack cache
run: |
for app in catalog-web catalog-admin catalog-fetch catalog-gather catalog-proxy
do
app_guid=$(cf app --guid "$app")
cf curl -X POST /v3/apps/${app_guid}/actions/clear_buildpack_cache
done
name: Clear Buildpack Cache (development)
runs-on: ubuntu-latest
environment: development
steps:
- name: Log in to Cloud Foundry
uses: cloud-gov/cg-cli-tools@main
with:
cf_org: gsa-datagov
cf_space: development
cf_username: ${{ secrets.CF_SERVICE_USER }}
cf_password: ${{ secrets.CF_SERVICE_AUTH }}
- name: Clear buildpack cache
run: |
for app in catalog-web catalog-admin catalog-fetch catalog-gather catalog-proxy
do
app_guid=$(cf app --guid "$app")
cf curl -X POST /v3/apps/${app_guid}/actions/clear_buildpack_cache
done
deploy-development:
if: github.ref == 'refs/heads/develop'
Expand Down

0 comments on commit 1fd63cc

Please sign in to comment.