homegrade_theme_production/.drone.yml
Antoine M 8fe3112d1a
All checks were successful
continuous-integration/drone/push Build is passing
cleaning echo commands
2024-08-06 12:03:50 +02:00

31 lines
843 B
YAML

---
kind: pipeline
type: ssh
name: default
clone:
disable: true
server:
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'