feat: add purging cloudflare cache on deploy
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
77c1184049
commit
6ea381e7c2
23
.drone.yml
23
.drone.yml
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user