Add cache purge to CI
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
25fe4735a4
commit
f1c93d01f4
|
@ -19,8 +19,11 @@ steps:
|
||||||
from_secret: ftp_username
|
from_secret: ftp_username
|
||||||
PASSWORD:
|
PASSWORD:
|
||||||
from_secret: ftp_password
|
from_secret: ftp_password
|
||||||
|
APIKEY:
|
||||||
|
from_secret: api_key
|
||||||
commands:
|
commands:
|
||||||
- apk --no-cache add lftp curl
|
- apk --no-cache add lftp curl
|
||||||
- cd dist
|
- cd dist
|
||||||
- 'curl -X DELETE -H "AccessKey: $PASSWORD" https://storage.bunnycdn.com/vcinemaapp/'
|
- 'curl -X DELETE -H "AccessKey: $PASSWORD" https://storage.bunnycdn.com/vcinemaapp/'
|
||||||
- 'lftp -e "mirror -P 10 -R" -u $USERNAME,$PASSWORD storage.bunnycdn.com'
|
- 'lftp -e "mirror -P 10 -R" -u $USERNAME,$PASSWORD storage.bunnycdn.com'
|
||||||
|
- 'curl -X POST -H "AccessKey: $APIKEY" https://bunnycdn.com/api/pullzone/233440/purgeCache --data ""'
|
||||||
|
|
Loading…
Reference in New Issue