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

31 lines
911 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: Deploiement
environment:
PROD_SERVER_PATH:
from_secret: prod_server_path
PROD_FOLDER_PATH:
from_secret: prod_folder_path
commands:
- git clone https://git.deligraph.be/Antoine/lhoist-stay-safe.git
- cd lhoist-stay-safe
- npm install
- npm run build
- ls
- rsync -avhp -e 'ssh -p 22' ./build/ $(PROD_SERVER_PATH):$(PROD_FOLDER_PATH) --delete