2023-09-03 20:52:55 +01:00
|
|
|
---
|
|
|
|
|
|
|
|
kind: pipeline
|
|
|
|
name: deployment
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: deploy
|
|
|
|
image: appleboy/drone-ssh
|
|
|
|
settings:
|
2023-09-09 18:54:29 +01:00
|
|
|
host: 192.168.68.120
|
2023-09-03 20:52:55 +01:00
|
|
|
username: vylpes
|
|
|
|
password:
|
|
|
|
from_secret: ssh_password
|
|
|
|
port: 22
|
|
|
|
script:
|
|
|
|
- sh /home/vylpes/scripts/card-drop/deploy_prod.sh
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- tag
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
kind: pipeline
|
|
|
|
name: staging
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: stage
|
|
|
|
image: appleboy/drone-ssh
|
|
|
|
settings:
|
2023-09-09 18:54:29 +01:00
|
|
|
host: 192.168.68.120
|
2023-09-03 20:52:55 +01:00
|
|
|
username: vylpes
|
|
|
|
password:
|
|
|
|
from_secret: ssh_password
|
|
|
|
port: 22
|
|
|
|
script:
|
|
|
|
- sh /home/vylpes/scripts/card-drop/deploy_stage.sh
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
branch:
|
|
|
|
- develop
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
kind: pipeline
|
|
|
|
name: integration
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: build
|
|
|
|
image: node
|
|
|
|
commands:
|
2023-12-09 16:40:23 +00:00
|
|
|
- npm ci
|
|
|
|
- npm run build
|
2023-09-03 20:52:55 +01:00
|
|
|
|
|
|
|
- name: test
|
|
|
|
image: node
|
|
|
|
commands:
|
2023-12-09 16:40:23 +00:00
|
|
|
- npm ci
|
|
|
|
- npm test
|
2023-09-03 20:52:55 +01:00
|
|
|
|
|
|
|
trigger:
|
|
|
|
branch:
|
|
|
|
- main
|
|
|
|
- develop
|
|
|
|
- hotfix/*
|
|
|
|
- feature/*
|
|
|
|
- renovate/*
|
|
|
|
event:
|
|
|
|
- push
|