From e4436c4aabc6a25b0793475a54846f2b1d9d6d0e Mon Sep 17 00:00:00 2001 From: Antoine M Date: Wed, 14 May 2025 12:23:58 +0200 Subject: [PATCH] test deploy mu-plugins with drone --- .drone.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..e86abde --- /dev/null +++ b/.drone.yml @@ -0,0 +1,27 @@ +--- +kind: pipeline +type: ssh +name: Carhop | Plugins | Déploiment des Plugins + +clone: + disable: true + +server: + 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/carhop__plugins__DEV.git + - name: Déploiement des mu-plugins + environment: + DEV_SERVER_PATH: + from_secret: dev_server_path + commands: + - cd carhop__plugins__DEV + - rsync -avhp -e 'ssh -p 1982' ./mu-plugins $DEV_SERVER_PATH:~/carhop/wordpress/wp-content/mu-plugins --delete --exclude 'node_modules' --exclude 'Makefile' --exclude '.git' --exclude '.env' --exclude '.env_prod' --exclude '.env_dev'