Compare commits
5 commits
19b6cb033c
...
1c3ba40b56
Author | SHA1 | Date | |
---|---|---|---|
1c3ba40b56 | |||
45a92a7b48 | |||
8e5ac6d01e | |||
4c1726f5c8 | |||
c3d65b5579 |
1 changed files with 76 additions and 0 deletions
76
.drone.yml
Normal file
76
.drone.yml
Normal 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
|
Loading…
Reference in a new issue