Fix CI deploy command
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
b879038c47
commit
561e983ae6
27
.drone.yml
27
.drone.yml
|
@ -6,7 +6,7 @@ steps:
|
||||||
- name: install
|
- name: install
|
||||||
image: node:lts-alpine
|
image: node:lts-alpine
|
||||||
commands:
|
commands:
|
||||||
- apk add git
|
- apk --no-cache add git
|
||||||
- npm install -g typescript
|
- npm install -g typescript
|
||||||
- npm install
|
- npm install
|
||||||
|
|
||||||
|
@ -18,22 +18,29 @@ steps:
|
||||||
- install
|
- install
|
||||||
|
|
||||||
- name: publish
|
- name: publish
|
||||||
image: alpine
|
image: cschlosser/drone-ftps
|
||||||
depends_on:
|
depends_on:
|
||||||
- build
|
- build
|
||||||
when:
|
when:
|
||||||
branch:
|
branch:
|
||||||
- master
|
- master
|
||||||
environment:
|
environment:
|
||||||
USERNAME:
|
FTP_USERNAME:
|
||||||
from_secret: ftp_username
|
from_secret: username
|
||||||
PASSWORD:
|
FTP_PASSWORD:
|
||||||
from_secret: ftp_password
|
from_secret: password
|
||||||
|
hostname: uk.storage.bunnycdn.com:21
|
||||||
|
secure: false
|
||||||
|
src_dir: ./dist
|
||||||
|
clean_dir: true
|
||||||
|
|
||||||
|
- name: clear-cache
|
||||||
|
image: alpine
|
||||||
|
depends_on:
|
||||||
|
- publish
|
||||||
|
environment:
|
||||||
APIKEY:
|
APIKEY:
|
||||||
from_secret: api_key
|
from_secret: api_key
|
||||||
commands:
|
commands:
|
||||||
- apk --no-cache add lftp curl
|
- apk --no-cache add curl
|
||||||
- cd dist
|
|
||||||
- 'curl -X DELETE -H "AccessKey: $PASSWORD" https://storage.bunnycdn.com/mercuryapp/'
|
|
||||||
- 'lftp -e "mirror -P 10 -R" -u $USERNAME,$PASSWORD storage.bunnycdn.com'
|
|
||||||
- 'curl -X POST -H "AccessKey: $APIKEY" https://bunnycdn.com/api/pullzone/733874/purgeCache --data ""'
|
- 'curl -X POST -H "AccessKey: $APIKEY" https://bunnycdn.com/api/pullzone/733874/purgeCache --data ""'
|
Loading…
Reference in New Issue