cv-site/.drone.yml

25 lines
551 B
YAML
Raw Normal View History

2021-12-16 10:41:15 +01:00
---
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:
2021-12-16 10:48:03 +01:00
- echo $USERNAME
- echo $PASSWORD
- echo $HOST
2021-12-16 10:41:15 +01:00
- lftp -c "open -u $USERNAME,$PASSWORD $HOST; mirror -Rnev ./build ./www --ignore-time --parallel=10 --exclude .htaccess --exclude-glob .git* --exclude .git/"