cv-site/.drone.yml

29 lines
579 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
2021-12-16 12:22:56 +01:00
2021-12-16 10:41:15 +01:00
- name: deploy
2021-12-16 12:42:34 +01:00
image: mwienk/docker-lftp
2021-12-16 10:41:15 +01:00
environment:
2021-12-20 11:35:50 +01:00
USERNAME: pettinattk
2021-12-16 12:42:34 +01:00
PASSWORD:
2021-12-16 10:41:15 +01:00
from_secret: password
2021-12-20 11:35:50 +01:00
HOST: ftp.cluster027.hosting.ovh.net
2021-12-16 12:42:34 +01:00
commands:
- "ls"
2021-12-20 11:35:50 +01:00
- echo $USERNAME
- echo $HOST
- echo $PASSWORD
2021-12-16 12:42:34 +01:00
- lftp -c "open -u $USERNAME,$PASSWORD $HOST; mirror -Rnev ./build ./www --ignore-time --parallel=10 --exclude .htaccess --exclude-glob .git* --exclude .git/"
2021-12-20 11:48:43 +01:00
trigger:
branch:
2023-05-27 15:38:45 +02:00
- main