dazzle/.drone.yml
light7734 306ad8ed63
Some checks reported errors
continuous-integration/drone/push Build was killed
continuous-integration/drone/tag Build is passing
continuous-integration/drone Build is failing
ci: fix typo in path
2025-08-09 12:57:34 +03:30

45 lines
745 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/dazzle_dev/*'
- mv ./build ./dazzle_dev
- scp -r './dazzle_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/dazzle/*'
- mv ./build ./dazzle/
- scp -r './dazzle/' 'light@5.75.206.84:/home/light/'