From 39b17c892030c12b3ee44119b9515960951523f3 Mon Sep 17 00:00:00 2001 From: Antoine M Date: Mon, 23 Sep 2024 10:07:47 +0200 Subject: [PATCH] test --- .drone.yml | 63 +++++++++++++++++++++++++++--------------------------- 1 file changed, 32 insertions(+), 31 deletions(-) diff --git a/.drone.yml b/.drone.yml index 63af99c..ad41c75 100644 --- a/.drone.yml +++ b/.drone.yml @@ -4,38 +4,39 @@ type: ssh name: Stay Safe | Front-End | Pipeline de déploiement clone: - disable: true + 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 + host: + from_secret: build_server_host + user: + from_secret: build_server_user + password: + from_secret: build_server_password steps: - - name: Clonage du Repo - commands: - - git clone https://git.deligraph.be/Antoine/lhoist-stay-safe.git - - 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 + - name: Clonage du Repo + commands: + - git clone https://git.deligraph.be/Antoine/lhoist-stay-safe.git + - 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 + +