Skip to content

Commit

Permalink
Merge pull request #10 from LibOps/invalidate-cache
Browse files Browse the repository at this point in the history
Invalidate CDN cache on deployment
  • Loading branch information
joecorall authored Nov 30, 2023
2 parents 14804d1 + baa4a8e commit 34d3d24
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,13 @@ jobs:
region: ${{ secrets.GCLOUD_REGION }}
- name: 'Use output'
run: 'curl -v -s -o /dev/null "${{ steps.deploy.outputs.url }}"'

- name: 'Set up Cloud SDK'
uses: 'google-github-actions/setup-gcloud@v1'
with:
version: '>= 455.0.0'
- name: 'Invalidate cache'
run: |
gcloud compute url-maps invalidate-cdn-cache ${{ secrets.GCLOUD_LB }} \
--host docs.libops.io \
--path "/*" \
--project ${{ secrets.GCLOUD_CR_PROJECT }}

0 comments on commit 34d3d24

Please sign in to comment.