This commit is contained in:
parent
ecb6bb4dd1
commit
195a38edc7
1 changed files with 18 additions and 5 deletions
13
.drone.yml
13
.drone.yml
|
@ -7,3 +7,16 @@ steps:
|
||||||
commands:
|
commands:
|
||||||
- npm install
|
- npm install
|
||||||
- npm run build
|
- npm run build
|
||||||
|
|
||||||
|
- name: deploy
|
||||||
|
image: alpine
|
||||||
|
environment:
|
||||||
|
FTP_HOST:
|
||||||
|
from_secret: FTP_HOST
|
||||||
|
FTP_USERNAME:
|
||||||
|
from_secret: FTP_USERNAME
|
||||||
|
FTP_PASSWORD:
|
||||||
|
from_secret: FTP_PASSWORD
|
||||||
|
commands:
|
||||||
|
- which lftp || ( apk --update add lftp )
|
||||||
|
- lftp -e "mirror -R ./dist/ samuel-philipp.de/; bye" -u $FTP_USERNAME,$FTP_PASSWORD $FTP_HOST
|
||||||
|
|
Loading…
Reference in a new issue