Metiers_du_patrimoine_theme/.drone.yml
Antoine M dba21a2b29
Some checks failed
continuous-integration/drone/push Build is failing
importing the them.json to build sucessfully
2024-10-15 10:12:38 +02:00

39 lines
1.2 KiB
YAML

---
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
- mkdir Homegrade_Theme
- cd Homegrade_Theme
- wget https://git.deligraph.be/Antoine/homegrade_theme_production/raw/branch/main/theme.json
- 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'