samuel-philipp.de/.drone.yml

28 lines
629 B
YAML
Raw Normal View History

2019-11-06 20:36:55 +00:00
kind: pipeline
type: docker
name: build
2019-11-06 20:36:55 +00:00
steps:
2019-11-06 20:50:05 +00:00
- name: build
image: node
commands:
- npm install
- npm run build
- name: deploy
image: alpine
environment:
2019-11-06 21:01:35 +00:00
FTP_HOST:
from_secret: FTP_HOST
FTP_USERNAME:
from_secret: FTP_USERNAME
FTP_PASSWORD:
from_secret: FTP_PASSWORD
2019-11-06 20:50:05 +00:00
commands:
- which lftp || ( apk --update add lftp )
- lftp -e "set ftp:ssl-force true; set ssl:verify-certificate no; mirror -R ./dist/ samuel-philipp.de/; bye" -u $FTP_USERNAME,$FTP_PASSWORD $FTP_HOST
when:
branch:
- master
event:
- push