cv-site/.drone.yml
Gianmarco Pettinato 59c8d72982
Some checks failed
continuous-integration/drone Build is failing
testing drone
2021-12-16 10:48:03 +01:00

25 lines
551 B
YAML

---
kind: pipeline
type: docker
name: deploy
steps:
- name: build-site
image: node:latest
commands:
- npm install
- npm run build
- name: deploy
image: mwienk/docker-lftp
environment:
$USERNAME:
from_secret: username
$PASSWORD:
from_secret: password
$HOST:
from_secret: host
commands:
- echo $USERNAME
- echo $PASSWORD
- echo $HOST
- lftp -c "open -u $USERNAME,$PASSWORD $HOST; mirror -Rnev ./build ./www --ignore-time --parallel=10 --exclude .htaccess --exclude-glob .git* --exclude .git/"