This commit is contained in:
parent
2b5e50b6a8
commit
a1f23f00a5
25
.drone.yml
25
.drone.yml
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
kind: pipeline
|
||||
type: ssh
|
||||
name: Stay Safe | Back-End | Pipeline de déploiement
|
||||
name: Stay Safe | Front-End | Pipeline de déploiement
|
||||
|
||||
clone:
|
||||
disable: true
|
||||
|
|
@ -18,5 +18,24 @@ steps:
|
|||
- name: Clonage du Repo
|
||||
commands:
|
||||
- git clone https://git.deligraph.be/Antoine/lhoist-stay-safe.git
|
||||
- echo "salut"
|
||||
|
||||
- name: Installation du package
|
||||
commands:
|
||||
- cd lhoist-stay-safe
|
||||
- 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
|
||||
- name: Déploiement sur le serveur de prod
|
||||
environment:
|
||||
PROD_SERVER_PATH:
|
||||
from_secret: prod_server_path
|
||||
PROD_FOLDER_PATH:
|
||||
from_secret: prod_folder_path
|
||||
commands:
|
||||
- cd lhoist-stay-safe
|
||||
- rsync -avhpn -e 'ssh -p 22' ./build/ $PROD_SERVER_PATH:$PROD_FOLDER_PATH --delete
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user