cv-site/.drone.yml
Gianmarco Pettinato 1ff883e624
All checks were successful
continuous-integration/drone Build is passing
update config of drone
2022-02-13 17:11:36 +01:00

29 lines
579 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/"
trigger:
branch:
- main