updating development pipeline automations
This commit is contained in:
parent
f5061f6eab
commit
c272ad6a4c
35
.drone.yml
Normal file
35
.drone.yml
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
---
|
||||
kind: pipeline
|
||||
type: ssh
|
||||
name: Metiers du patrimoine | Déploiment du Thème
|
||||
|
||||
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/Metiers_du_patrimoine_theme.git
|
||||
- name: Installation du package
|
||||
commands:
|
||||
- cd Metiers_du_patrimoine_theme
|
||||
- npm install
|
||||
- name: Build du package
|
||||
commands:
|
||||
- cd Metiers_du_patrimoine_theme
|
||||
- npm run production
|
||||
- name: Déploiement sur le serveur de dev
|
||||
environment:
|
||||
DEV_SERVER_PATH:
|
||||
from_secret: dev_server_path
|
||||
commands:
|
||||
- cd Metiers_du_patrimoine_theme
|
||||
- rsync -avhp -e 'ssh -p 1982' ./ $DEV_SERVER_PATH:~/homegrade-network/wordpress/wp-content/themes/Metiers_du_patrimoine --delete --exclude 'node_modules' --exclude 'Makefile' --exclude '.git' --exclude '.env' --exclude '.env_prod' --exclude '.env_dev'
|
||||
Loading…
Reference in New Issue
Block a user