refining
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Antoine M 2024-09-23 10:20:38 +02:00
parent 66a8ef91a5
commit b22837c36d

View File

@ -1,7 +1,7 @@
---
kind: pipeline
type: ssh
name: Stay Safe | Front-End | Pipeline de déploiement
name: Stay Safe | Back-End | Pipeline de déploiement
clone:
disable: true
@ -17,19 +17,15 @@ server:
steps:
- name: Clonage du Repo
commands:
- git clone https://git.deligraph.be/Antoine/lhoist-stay-safe.git
- git clone https://git.deligraph.be/Antoine/lhoist-stay-safe__backend-theme.git
- name: Installation du package
commands:
- cd lhoist-stay-safe
- cd lhoist-stay-safe__backend-theme
- npm install
- name: Build du package
commands:
- cd lhoist-stay-safe
- npm run build
- name: Génération du htAccess
commands:
- cd lhoist-stay-safe
- cp .htaccess build/.htaccess
- cd lhoist-stay-safe__backend-theme
- npm run production
- name: Déploiement sur le serveur de prod
environment:
PROD_SERVER_PATH:
@ -38,7 +34,3 @@ steps:
from_secret: prod_folder_path
commands:
- cd lhoist-stay-safe