bonfire/.drone.yml

43 lines
744 B
YAML
Raw Normal View History

kind: pipeline
2025-08-08 13:45:54 +03:30
type: docker
2025-08-08 14:25:00 +03:30
name: deploy_dev
2025-08-08 13:45:54 +03:30
trigger:
branch:
- main
steps:
2025-08-08 13:45:54 +03:30
- name: build
2025-04-25 14:18:13 +03:30
image: node:latest
commands:
- npm install
- npm run build
2025-08-08 13:45:54 +03:30
2025-08-08 13:46:28 +03:30
- name: deploy
2025-08-08 14:02:33 +03:30
image: byteflair/scp
2025-08-08 13:45:54 +03:30
commands:
2025-08-08 15:38:27 +03:30
- ssh 'light@5.75.206.84' 'rm -rf /home/light/bonfire_dev/*'
2025-08-08 15:43:07 +03:30
- scp -r './build/*' 'light@5.75.206.84:/home/light/bonfire_dev'
2025-08-08 14:25:00 +03:30
---
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:
2025-08-08 15:38:27 +03:30
- ssh 'light@5.75.206.84' 'rm -rf /home/light/bonfire/*'
2025-08-08 15:43:07 +03:30
- scp -r './build/*' 'light@5.75.206.84:/home/light/bonfire'