homegrade_theme_production/.drone.yml
Antoine M 74e344605c
All checks were successful
continuous-integration/drone/push Build is passing
push test #2
2024-07-30 13:14:34 +02:00

28 lines
764 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:
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_production.git
- cd homegrade_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'