test
Some checks reported errors
continuous-integration/drone/push Build encountered an error

This commit is contained in:
Antoine M 2024-09-23 10:07:47 +02:00
parent a1f23f00a5
commit 39b17c8920

View File

@ -4,38 +4,39 @@ type: ssh
name: Stay Safe | Front-End | Pipeline de déploiement name: Stay Safe | Front-End | Pipeline de déploiement
clone: clone:
disable: true disable: true
# DATAS DU SERVEUR DE BUILD # DATAS DU SERVEUR DE BUILD
server: server:
host: host:
from_secret: build_server_host from_secret: build_server_host
user: user:
from_secret: build_server_user from_secret: build_server_user
password: password:
from_secret: build_server_password from_secret: build_server_password
steps: steps:
- name: Clonage du Repo - name: Clonage du Repo
commands: commands:
- git clone https://git.deligraph.be/Antoine/lhoist-stay-safe.git - git clone https://git.deligraph.be/Antoine/lhoist-stay-safe.git
- name: Installation du package - name: Installation du package
commands: commands:
- cd lhoist-stay-safe - cd lhoist-stay-safe
- npm install - npm install
- name: Build du package - name: Build du package
commands: commands:
- cd lhoist-stay-safe - cd lhoist-stay-safe
- npm run build - npm run build
- name: Génération du htAccess - name: Génération du htAccess
commands: commands:
- cd lhoist-stay-safe - cd lhoist-stay-safe
- cp .htaccess build/.htaccess - cp .htaccess build/.htaccess
- name: Déploiement sur le serveur de prod - name: Déploiement sur le serveur de prod
environment: environment:
PROD_SERVER_PATH: PROD_SERVER_PATH:
from_secret: prod_server_path from_secret: prod_server_path
PROD_FOLDER_PATH: PROD_FOLDER_PATH:
from_secret: prod_folder_path from_secret: prod_folder_path
commands: commands:
- cd lhoist-stay-safe - cd lhoist-stay-safe
- rsync -avhpn -e 'ssh -p 22' ./build/ $PROD_SERVER_PATH:$PROD_FOLDER_PATH --delete