implementation test for the production pipe
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Antoine M 2024-07-30 12:36:33 +02:00
parent 257f0d50f0
commit d3171ffa68

26
.drone.yml Normal file
View File

@ -0,0 +1,26 @@
---
kind: pipeline
type: ssh
name: default
clone:
disable: true
server:
host:
from_secret: ssh_dev_host
user:
from_secret: ssh_dev_user
password:
from_secret: ssh_dev_password
steps:
- name: Deploiement
environment:
PROJECT_SERVER_PATH:
from_secret: project_dev_server_path
commands:
- git clone https://git.deligraph.be/Antoine/homegrade_production.git
- cd homegrade_production
- npm install
- npm run build
- rsync -avhp ./ $PROJECT_SERVER_PATH --delete --exclude 'node_modules' --exclude 'Makefile' --exclude 'Makefile_dev' --exclude '.env' --exclude '.env_prod' --exclude '.env_dev' --exclude '.git'