initializing drone deployement for dev
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
f7df3a5809
commit
64742ec583
22
.drone.yml
22
.drone.yml
|
|
@ -14,17 +14,23 @@ server:
|
||||||
password:
|
password:
|
||||||
from_secret: ssh_dev_password
|
from_secret: ssh_dev_password
|
||||||
steps:
|
steps:
|
||||||
- name: Deploiement
|
- name: Clonage du Repo
|
||||||
environment:
|
|
||||||
PLUGIN_PATH:
|
|
||||||
from_secret: dev_server_plugin_path
|
|
||||||
THEME_PATH:
|
|
||||||
from_secret: dev_server_theme_path
|
|
||||||
PROJECT_SERVER_PATH:
|
|
||||||
from_secret: project_dev_server_path
|
|
||||||
commands:
|
commands:
|
||||||
- git clone https://git.deligraph.be/Antoine/homegrade_theme_production.git
|
- git clone https://git.deligraph.be/Antoine/homegrade_theme_production.git
|
||||||
|
|
||||||
|
- name: Installation du package
|
||||||
|
commands:
|
||||||
- cd homegrade_theme_production
|
- cd homegrade_theme_production
|
||||||
- npm install
|
- npm install
|
||||||
|
|
||||||
|
- name: Build du package
|
||||||
|
commands:
|
||||||
|
- cd homegrade_theme_production
|
||||||
- npm run production
|
- npm run production
|
||||||
|
|
||||||
|
- name: Déploiement des blocks
|
||||||
|
environment:
|
||||||
|
THEME_PATH:
|
||||||
|
from_secret: dev_server_theme_path
|
||||||
|
commands:
|
||||||
- rsync -avhp ./ $THEME_PATH --delete --exclude 'node_modules' --exclude 'Makefile' --exclude 'Makefile_dev' --exclude '.env' --exclude '.env_prod' --exclude '.env_dev' --exclude '.git'
|
- rsync -avhp ./ $THEME_PATH --delete --exclude 'node_modules' --exclude 'Makefile' --exclude 'Makefile_dev' --exclude '.env' --exclude '.env_prod' --exclude '.env_dev' --exclude '.git'
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user