Add .drone.yml #260

Merged
Vylpes merged 4 commits from feature/218-drone-ci into develop 2023-02-03 17:35:27 +00:00

76
.drone.yml Normal file
View file

@ -0,0 +1,76 @@
---
kind: pipeline
type: ssh
name: deployment
server:
host: 192.168.68.121
user: vylpes
password:
from_secret: ssh_password
steps:
- name: deploy
commands:
- sh /home/vylpes/scripts/vylbot/deploy_prod.sh
trigger:
branch:
- main
event:
- promote
target:
- production
---
kind: pipeline
type: ssh
name: staging
server:
host: 192.168.68.121
user: vylpes
password:
from_secret: ssh_password
steps:
- name: deploy
commands:
- sh /home/vylpes/scripts/vylbot/deploy_stage.sh
trigger:
branch:
- develop
event:
- push
---
kind: pipeline
name: integration
steps:
- name: build
image: node
commands:
- yarn install --frozen-lockfile
- yarn build
- name: test
image: node
commands:
- yarn install --frozen-lockfile
- yarn test
trigger:
branch:
- main
- develop
- hotfix/*
- feature/*
- renovate/*
event:
- push
- pull_request