CHORE Adapting for production pipeline
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
b4a741391d
commit
7fe8414b97
12
.drone.yml
12
.drone.yml
|
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: ssh
|
type: ssh
|
||||||
name: Metiers du patrimoine | Déploiment du Thème
|
name: Metiers du patrimoine | Déploiment du Thème en production
|
||||||
|
|
||||||
clone:
|
clone:
|
||||||
disable: true
|
disable: true
|
||||||
|
|
@ -18,8 +18,6 @@ steps:
|
||||||
- name: Clonage du Repo
|
- name: Clonage du Repo
|
||||||
commands:
|
commands:
|
||||||
- git clone https://git.deligraph.be/Antoine/Metiers_du_patrimoine_theme.git
|
- 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
|
- name: Installation du package
|
||||||
commands:
|
commands:
|
||||||
- cd Metiers_du_patrimoine_theme
|
- cd Metiers_du_patrimoine_theme
|
||||||
|
|
@ -28,10 +26,10 @@ steps:
|
||||||
commands:
|
commands:
|
||||||
- cd Metiers_du_patrimoine_theme
|
- cd Metiers_du_patrimoine_theme
|
||||||
- npm run production
|
- npm run production
|
||||||
- name: Déploiement sur le serveur de dev
|
- name: Déploiement sur le serveur de production
|
||||||
environment:
|
environment:
|
||||||
DEV_SERVER_PATH:
|
PROD_SERVER_PATH:
|
||||||
from_secret: dev_server_path
|
from_secret: prod_server_path
|
||||||
commands:
|
commands:
|
||||||
- cd Metiers_du_patrimoine_theme
|
- 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'
|
- rsync -avhp -e 'ssh' ./ $PROD_SERVER_PATH:~/public_html/wp-content/themes/Metiers_du_patrimoine_test --delete --exclude 'node_modules' --exclude 'Makefile' --exclude '.git' --exclude '.env' --exclude '.env_prod' --exclude '.env_dev'
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user