karl/.drone.yml

28 lines
777 B
YAML
Raw Normal View History

2021-03-10 10:30:44 +01:00
name: default
kind: pipeline
steps:
- name: build
2021-03-10 10:40:26 +01:00
image: node
2021-03-10 10:30:44 +01:00
commands:
- make build-view
2021-03-13 01:30:45 +01:00
- make git-json
2021-03-12 18:50:40 +01:00
volumes:
2021-03-13 01:30:45 +01:00
- name: cache
path: /drone/src/view/node_modules
2021-03-10 10:30:44 +01:00
- name: deploy
image: alpacadb/docker-lftp
environment:
FTP_USERNAME:
from_secret: FTP_USERNAME
FTP_PASSWORD:
from_secret: FTP_PASSWORD
commands:
2021-03-10 10:43:17 +01:00
- pwd
2021-03-10 13:50:41 +01:00
- cd view/public
2021-03-12 18:50:40 +01:00
- lftp -e "set sftp:auto-confirm true; set ftp:ssl-force true; set xfer:timeout 10000; debug 3; open -u $FTP_USERNAME,$FTP_PASSWORD sftp://ssh.jim-fx.com:2221; mkdir -p share/karl; cd share/karl; mirror -p --scan-all-first --overwrite --verbose -R --skip-noaccess; quit;"
volumes:
- name: cache
host:
path: /tmp/drone/cache/node_modules