Skip to content

Commit

Permalink
Purge the fastly cache on deploy (#1021)
Browse files Browse the repository at this point in the history
  • Loading branch information
blarghmatey authored Jun 6, 2024
1 parent 8ff521e commit 8532aeb
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,13 @@ jobs:
heroku_app_name: "mitopen-production"
heroku_email: ${{ secrets.HEROKU_EMAIL }}
branch: release

- name: Purge Fastly cache
uses: jcoene/fastly-purge-action@master
with:
api_key: "${{ secrets.FASTLY_API_KEY_PRODUCTION }}"
service_id: "${{ secrets.FASTLY_SERVICE_ID_PRODUCTION }}"

# runs ONLY on a failure of the CI workflow
on-failure:
runs-on: ubuntu-latest
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/release-candidate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,13 @@ jobs:
heroku_app_name: "mitopen-rc"
heroku_email: ${{ secrets.HEROKU_EMAIL }}
branch: release-candidate

- name: Purge Fastly cache
uses: jcoene/fastly-purge-action@master
with:
api_key: "${{ secrets.FASTLY_API_KEY_RC }}"
service_id: "${{ secrets.FASTLY_SERVICE_ID_RC }}"

# runs ONLY on a failure of the CI workflow
on-failure:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 8532aeb

Please sign in to comment.