bonfire/.drone.yml
light7734 24214a7117
Some checks failed
continuous-integration/drone/push Build is failing
ci: fix
2025-08-08 15:43:07 +03:30

42 lines
744 B
YAML

kind: pipeline
type: docker
name: deploy_dev
trigger:
branch:
- main
steps:
- name: build
image: node:latest
commands:
- npm install
- npm run build
- name: deploy
image: byteflair/scp
commands:
- ssh 'light@5.75.206.84' 'rm -rf /home/light/bonfire_dev/*'
- scp -r './build/*' 'light@5.75.206.84:/home/light/bonfire_dev'
---
kind: pipeline
type: docker
name: deploy_prod
trigger:
event:
- tag
steps:
- name: build
image: node:latest
commands:
- npm install
- npm run build
- name: deploy
image: byteflair/scp
commands:
- ssh 'light@5.75.206.84' 'rm -rf /home/light/bonfire/*'
- scp -r './build/*' 'light@5.75.206.84:/home/light/bonfire'