From d3171ffa68211996662061ee1c628ed9ee8e82ea Mon Sep 17 00:00:00 2001 From: Antoine M Date: Tue, 30 Jul 2024 12:36:33 +0200 Subject: [PATCH] implementation test for the production pipe --- .drone.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..cd5d69c --- /dev/null +++ b/.drone.yml @@ -0,0 +1,26 @@ +--- +kind: pipeline +type: ssh +name: default + +clone: + disable: true + +server: + host: + from_secret: ssh_dev_host + user: + from_secret: ssh_dev_user + password: + from_secret: ssh_dev_password +steps: + - name: Deploiement + environment: + PROJECT_SERVER_PATH: + from_secret: project_dev_server_path + commands: + - git clone https://git.deligraph.be/Antoine/homegrade_production.git + - cd homegrade_production + - npm install + - npm run build + - rsync -avhp ./ $PROJECT_SERVER_PATH --delete --exclude 'node_modules' --exclude 'Makefile' --exclude 'Makefile_dev' --exclude '.env' --exclude '.env_prod' --exclude '.env_dev' --exclude '.git'