Merge pull request #85 from dotCMS/fixing-nextjs-image #11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Flush CDN After Merge | |
on: | |
push: | |
branches: [ main,testing ] | |
workflow_dispatch: | |
jobs: | |
flush-cdn-after-merge: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Flush CDN after merge | |
run: | | |
sleep 90 # Wait for the CDN to be updated | |
curl --request POST \ | |
--url https://api.bunny.net/pullzone/${{ secrets.BUNNY_PULLZONE_ID }}/purgeCache \ | |
--header "AccessKey: ${{ secrets.BUNNY_ACCESS_KEY }}" \ | |
--header 'content-type: application/json' | |
sleep 60 # Wait for the CDN to be updated | |
curl --request POST \ | |
--url https://api.bunny.net/pullzone/${{ secrets.BUNNY_PULLZONE_ID }}/purgeCache \ | |
--header "AccessKey: ${{ secrets.BUNNY_ACCESS_KEY }}" \ | |
--header 'content-type: application/json' | |
# Purging the CDN curl command | |
# curl --request POST \ | |
# --url https://api.bunny.net/pullzone/${{ secrets.BUNNY_PULLZONE_ID }}/purgeCache \ | |
# --header 'AccessKey: ${{ secrets.BUNNY_ACCESS_KEY }}' \ | |
# --header 'content-type: application/json' | |
# |