bonfire/.drone.yml

45 lines
749 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-09 11:52:18 +03:30
- name: build
image: node:latest
commands:
- npm install
- npm run build
2025-08-08 13:45:54 +03:30
2025-08-09 11:52:18 +03:30
- name: deploy
image: byteflair/scp
commands:
- ssh 'light@5.75.206.84' 'rm -rf /home/light/bonfire_dev/*'
- mv ./build ./bonfire_dev
- scp -r './bonfire_dev/' 'light@5.75.206.84:/home/light/'
2025-08-08 14:25:00 +03:30
---
kind: pipeline
type: docker
name: deploy_prod
trigger:
event:
- tag
steps:
2025-08-09 11:52:18 +03:30
- name: build
image: node:latest
commands:
- npm install
- npm run build
2025-08-08 14:25:00 +03:30
2025-08-09 11:52:18 +03:30
- name: deploy
image: byteflair/scp
commands:
- ssh 'light@5.75.206.84' 'rm -rf /home/light/bonfire/*'
- mv ./build ./bonfire
- scp -r './bonfire/' 'light@5.75.206.84:/home/light/'