Vylpes
9749f9c9c9
Some checks failed
continuous-integration/drone/push Build is failing
- Update drone deployment script to only deploy when a tag is created #292 Co-authored-by: Ethan Lane <ethan@vylpes.com> Reviewed-on: https://gitea.vylpes.xyz/RabbitLabs/vylbot-app/pulls/313
72 lines
961 B
YAML
72 lines
961 B
YAML
---
|
|
|
|
kind: pipeline
|
|
name: deployment
|
|
|
|
steps:
|
|
- name: deploy
|
|
image: appleboy/drone-ssh
|
|
settings:
|
|
host: 192.168.68.121
|
|
username: vylpes
|
|
password:
|
|
from_secret: ssh_password
|
|
port: 22
|
|
script:
|
|
- sh /home/vylpes/scripts/vylbot/deploy_prod.sh
|
|
|
|
trigger:
|
|
event:
|
|
- tag
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
name: staging
|
|
|
|
steps:
|
|
- name: stage
|
|
image: appleboy/drone-ssh
|
|
settings:
|
|
host: 192.168.68.121
|
|
username: vylpes
|
|
password:
|
|
from_secret: ssh_password
|
|
port: 22
|
|
script:
|
|
- 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
|