homegrade_theme_production/.drone.yml
Antoine M e37ade5929
Some checks failed
continuous-integration/drone/push Build is failing
test cicd
2024-09-23 15:11:10 +02:00

36 lines
1015 B
YAML

---
kind: pipeline
type: ssh
name: Homegrade | Déploiment du dev
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/homegrade_theme_production.git
- name: Installation du package
commands:
- cd homegrade_theme_production
- npm install
- name: Build du package
commands:
- cd homegrade_theme_production
- npm run production
- name: Déploiement sur le serveur de prod
environment:
PROD_SERVER_PATH:
from_secret: prod_server_path
commands:
- cd lhoist-stay-safe__backend-theme
- rsync -avhpn -e 'ssh -p 22' ./ $PROD_SERVER_PATH:back/wp-content/themes/Deligraph_lhoist --exclude 'node_modules' --exclude 'Makefile' --exclude '.git' --exclude '.env' --exclude '.env_prod' --exclude '.env_dev'