Skip to content

Commit 3134e6d

Browse files
Merge pull request 0xPolygon#72 from 0xPolygon/sreevalsan/cache_purge
add cache purging in github workflow
2 parents ec644bb + 4fda683 commit 3134e6d

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

.github/workflows/dev_deployment.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,3 +72,10 @@ jobs:
7272
service: ${{ env.ECS_SERVICE }}
7373
cluster: ${{ env.ECS_CLUSTER }}
7474
wait-for-service-stability: true
75+
76+
- name: Cloudflare Cache Purge
77+
uses: nathanvaughn/actions-cloudflare-purge@master
78+
with:
79+
cf_zone: ${{ secrets.CLOUDFLARE_ZONE }}
80+
cf_auth: ${{ secrets.CLOUDFLARE_AUTH_KEY }}
81+
hosts: docs-dev.polygon.technology

.github/workflows/prod_deployment.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,3 +79,10 @@ jobs:
7979
service: ${{ env.ECS_SERVICE }}
8080
cluster: ${{ env.ECS_CLUSTER }}
8181
wait-for-service-stability: true
82+
83+
- name: Cloudflare Cache Purge
84+
uses: nathanvaughn/actions-cloudflare-purge@master
85+
with:
86+
cf_zone: ${{ secrets.CLOUDFLARE_ZONE }}
87+
cf_auth: ${{ secrets.CLOUDFLARE_AUTH_KEY }}
88+
hosts: docs.polygon.technology

.github/workflows/staging_deployment.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,3 +72,10 @@ jobs:
7272
service: ${{ env.ECS_SERVICE }}
7373
cluster: ${{ env.ECS_CLUSTER }}
7474
wait-for-service-stability: true
75+
76+
- name: Cloudflare Cache Purge
77+
uses: nathanvaughn/actions-cloudflare-purge@master
78+
with:
79+
cf_zone: ${{ secrets.CLOUDFLARE_ZONE }}
80+
cf_auth: ${{ secrets.CLOUDFLARE_AUTH_KEY }}
81+
hosts: docs-staging.polygon.technology

0 commit comments

Comments
 (0)