lhoist-stay-safe/.drone.yml
Antoine M 2f4441d68e
Some checks failed
continuous-integration/drone/push Build is failing
first migration test on prod server
2024-09-12 15:09:50 +02:00

32 lines
992 B
YAML

---
kind: pipeline
type: ssh
name: default
clone:
disable: true
# DATAS DU SERVEUR DE BUILD
server:
host:
from_secret: build_server_host
user:
from_secret: build_server_user
password:
from_secret: build_server_password
steps:
- name: Clonage
commands:
- git clone https://git.deligraph.be/Antoine/lhoist-stay-safe.git
- cd lhoist-stay-safe
- name: Installation du package
commands:
- npm install
- name: Build du package
commands:
- npm run build
- name: Déploiement sur le serveur de prod
commands:
- sshpass -p "xmAgdEUhDhQp" rsync -avhp -e 'ssh -p 22' ./build/ staysaa@ssh.cluster027.hosting.ovh.net:www --delete
# - rsync -avhp -e 'ssh -p 22' ./build/ staysaa@ssh.cluster027.hosting.ovh.net:www --delete