vylbot-app/.drone.yml

70 lines
904 B
YAML
Raw Normal View History

2023-01-27 17:41:05 +00:00
---
kind: pipeline
name: deployment
2023-02-03 17:55:10 +00:00
image: appleboy/drone-ssh
settings:
2023-02-02 08:38:14 +00:00
host: 192.168.68.121
2023-02-03 17:55:10 +00:00
username: vylpes
2023-01-27 17:41:05 +00:00
password:
from_secret: ssh_password
2023-02-03 17:55:10 +00:00
port: 22
script:
- sh /home/vylpes/scripts/vylbot/deploy_prod.sh
2023-01-27 17:41:05 +00:00
trigger:
branch:
- main
event:
- promote
---
kind: pipeline
name: staging
2023-02-03 17:55:10 +00:00
image: appleboy/drone-ssh
settings:
2023-02-02 08:38:14 +00:00
host: 192.168.68.121
2023-02-03 17:55:10 +00:00
username: vylpes
2023-01-27 17:41:05 +00:00
password:
from_secret: ssh_password
2023-02-03 17:55:10 +00:00
port: 22
script:
- sh /home/vylpes/scripts/vylbot/deploy_stage.sh
2023-01-27 17:41:05 +00:00
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