Metiers_du_patrimoine_theme/.drone.yml
Nonimart 9a5e228d56
All checks were successful
continuous-integration/drone/push Build is passing
CHORE Adapting path to real them folder
2025-08-05 14:31:07 +02:00

38 lines
1.2 KiB
YAML

---
kind: pipeline
type: ssh
name: Metiers du patrimoine | Déploiment du Thème en production
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
- git clone https://git.deligraph.be/Antoine/homegrade_theme_production.git
- mv homegrade_theme_production Homegrade_Theme
- 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 production
environment:
PROD_SERVER_PATH:
from_secret: prod_server_path
commands:
- cd Metiers_du_patrimoine_theme
- rsync -avhp -e 'ssh' ./ $PROD_SERVER_PATH:~/public_html/wp-content/themes/Metiers_du_patrimoine --delete --exclude 'node_modules' --exclude 'Makefile' --exclude '.git' --exclude '.env' --exclude '.env_prod' --exclude '.env_dev'