vylbot-app/.drone.yml

76 lines
909 B
YAML
Raw Normal View History

2023-01-27 17:41:05 +00:00
---
kind: pipeline
type: ssh
name: deployment
server:
2023-02-02 08:38:14 +00:00
host: 192.168.68.121
2023-01-27 17:41:05 +00:00
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:
2023-02-02 08:38:14 +00:00
host: 192.168.68.121
2023-01-27 17:41:05 +00:00
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