From 6f9cd8d0a13ab9952bfed4449595fcceb1c506f4 Mon Sep 17 00:00:00 2001 From: light7734 Date: Sun, 24 Aug 2025 10:17:28 +0330 Subject: [PATCH] ci: move deployment to ryali --- .drone.yml | 43 +++++++++---------------------------------- 1 file changed, 9 insertions(+), 34 deletions(-) diff --git a/.drone.yml b/.drone.yml index 9573799..62d48c9 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,7 +1,8 @@ kind: pipeline type: docker name: deploy_dev - +node: + environment: ryali trigger: branch: - main @@ -12,29 +13,17 @@ steps: commands: - npm install - npm run build - -- name: deploy - image: byteflair/scp - commands: - - mv ./build ./bonfire_dev_staging - - # Stage - - ssh -tt 'light@5.75.206.84' 'sudo rm -rf /home/light/bonfire_dev_staging' - - scp -r './bonfire_dev_staging' 'light@5.75.206.84:/home/light/' - - # Move to endpoint - - ssh -tt 'light@5.75.206.84' 'sudo rm -rf /home/light/bonfire_dev/*' - - ssh -tt 'light@5.75.206.84' 'sudo mv /home/light/bonfire_dev_staging/* /home/light/bonfire_dev/' - - # Remove staging - - ssh -tt 'light@5.75.206.84' 'sudo rm -rf /home/light/bonfire_dev_staging' + - rm -rf /bonfire_dev/* + - mv ./build/* /bonfire_dev/ --- kind: pipeline type: docker name: deploy_prod +node: + environment: ryali + -trigger: event: - tag @@ -44,19 +33,5 @@ steps: commands: - npm install - npm run build - -- name: deploy - image: byteflair/scp - commands: - - mv ./build ./bonfire_staging - - # Stage - - ssh -tt 'light@5.75.206.84' 'sudo rm -rf /home/light/bonfire_staging' - - scp -r './bonfire_staging' 'light@5.75.206.84:/home/light/' - - # Move to endpoint - - ssh -tt 'light@5.75.206.84' 'sudo rm -rf /home/light/bonfire/*' - - ssh -tt 'light@5.75.206.84' 'sudo mv /home/light/bonfire_staging/* /home/light/bonfire/' - - # Remove staging - - ssh -tt 'light@5.75.206.84' 'sudo rm -rf /home/light/bonfire_staging' + - rm -rf /bonfire/* + - mv ./build/* /bonfire/