bonfire/.drone.yml
light7734 afe0e68288
Some checks reported errors
continuous-integration/drone/push Build encountered an error
ci: attempt fix deployment
2025-08-09 11:49:44 +03:30

45 lines
803 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/*'
mv ./build ./bonfire_dev
scp -r './bonfire_dev/' 'light@5.75.206.84:/home/light/'
---
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/*'
mv ./build ./bonfire
scp -r './bonfire/' 'light@5.75.206.84:/home/light/'