test deploy mu-plugins with drone
This commit is contained in:
parent
df9e52944a
commit
e4436c4aab
27
.drone.yml
Normal file
27
.drone.yml
Normal file
|
|
@ -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'
|
||||||
Loading…
Reference in New Issue
Block a user