samuel-philipp.de/.drone.yml

32 lines
666 B
YAML
Raw Normal View History

2019-11-06 20:36:55 +00:00
kind: pipeline
type: docker
2020-07-05 10:19:25 +00:00
name: default
2019-11-06 20:36:55 +00:00
2020-07-05 10:17:49 +00:00
platform:
os: linux
arch: arm
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