From afcfb818ca666c428796f8f4cf1be73dcfec27b5 Mon Sep 17 00:00:00 2001 From: Antoine M Date: Wed, 24 Jul 2024 17:22:13 +0200 Subject: [PATCH] variable project path test --- .drone.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 1b1290b..be59dbf 100644 --- a/.drone.yml +++ b/.drone.yml @@ -15,9 +15,13 @@ server: from_secret: ssh_password steps: - name: Deploiement + + environment: + PROJECT_SERVER_PATH: + from_secret: project_server_path commands: - git clone https://git.deligraph.be/Antoine/Oxfam_Interactive_map.git - cd Oxfam_Interactive_map - npm install - npm run build - - rsync -avhp ./dist/ /home/deliadmin/oxfam/wordpress --delete + - rsync -avhp ./dist/ $PROJECT_SERVER_PATH --delete