cv-site/.drone.yml

49 lines
1004 B
YAML
Raw Permalink Normal View History

2021-12-16 10:41:15 +01:00
---
kind: pipeline
type: docker
2023-05-27 17:16:14 +02:00
name: deploy-production
2021-12-16 10:41:15 +01:00
steps:
2023-05-27 17:16:14 +02:00
- name: build-site
image: node:16
commands:
- npm install
- npm run build
2021-12-16 12:22:56 +01:00
2023-05-27 17:16:14 +02:00
- name: deploy
image: mwienk/docker-lftp
environment:
USERNAME: pettinattk
PASSWORD:
from_secret: password
HOST: ftp.cluster027.hosting.ovh.net
commands:
- 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 17:16:14 +02:00
- main
---
kind: pipeline
type: docker
name: deploy-develop
steps:
- name: build-site
image: node:16
commands:
- npm install
- npm run build
- name: deploy
image: ictu/sshpass
environment:
SSHPASS:
from_secret: ssh_key
commands:
2023-05-27 19:27:39 +02:00
- sshpass -e rsync -arP -e "ssh -p 69 -o StrictHostKeyChecking=no" ./build/ root@192.168.178.25:/mnt/user/appdata/binhex-nginx/nginx/html/
2023-05-27 17:16:14 +02:00
trigger:
branch:
- develop