feat: add purging cloudflare cache on deploy
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Lucien Cartier-Tilet 2023-10-27 15:51:12 +02:00
parent 77c1184049
commit 6ea381e7c2
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA
1 changed files with 17 additions and 6 deletions

View File

@ -2,12 +2,6 @@ kind: pipeline
name: default
steps:
# - name: prepare
# image: alpine
# commands:
# - apk add git
# - git submodule update --init --recursive
- name: build
image: silex/emacs:27-alpine
commands:
@ -38,3 +32,20 @@ steps:
event:
exclude:
- pull_request
- name: purge cache
image: jetrails/drone-cloudflare-caching
settings:
api_token:
from_secret: cloudflare_cache_api
zone_identifier:
from_secret: phundrak_com_zone_id
action: purge_files
list:
- https://blog.phundrak.com
when:
branch:
- master
event:
exclude:
- pull_request