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
48
.drone.yml
48
.drone.yml
|
|
@ -4,27 +4,33 @@ type: ssh
|
|||
name: default
|
||||
|
||||
clone:
|
||||
disable: true
|
||||
disable: true
|
||||
|
||||
server:
|
||||
host:
|
||||
from_secret: ssh_dev_host
|
||||
user:
|
||||
from_secret: ssh_dev_user
|
||||
password:
|
||||
from_secret: ssh_dev_password
|
||||
host:
|
||||
from_secret: ssh_dev_host
|
||||
user:
|
||||
from_secret: ssh_dev_user
|
||||
password:
|
||||
from_secret: ssh_dev_password
|
||||
steps:
|
||||
- name: Deploiement
|
||||
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:
|
||||
- git clone https://git.deligraph.be/Antoine/homegrade_theme_production.git
|
||||
- cd homegrade_theme_production
|
||||
- npm install
|
||||
- npm run production
|
||||
- rsync -avhp ./ $THEME_PATH --delete --exclude 'node_modules' --exclude 'Makefile' --exclude 'Makefile_dev' --exclude '.env' --exclude '.env_prod' --exclude '.env_dev' --exclude '.git'
|
||||
- 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 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'
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user