cv-site/.drone.yml
Gianmarco Pettinato 16d0114bf4
All checks were successful
continuous-integration/drone Build is passing
fixed CI
2021-12-20 11:35:50 +01:00

26 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: pettinattk
PASSWORD:
from_secret: password
HOST: ftp.cluster027.hosting.ovh.net
commands:
- "ls"
- echo $USERNAME
- echo $HOST
- echo $PASSWORD
- lftp -c "open -u $USERNAME,$PASSWORD $HOST; mirror -Rnev ./build ./www --ignore-time --parallel=10 --exclude .htaccess --exclude-glob .git* --exclude .git/"