add drone
continuous-integration/drone/push Build is passing Details

This commit is contained in:
user-penguin 2024-08-24 17:43:19 +07:00
parent 1fd9fd292d
commit 57769eb9a3
1 changed files with 34 additions and 0 deletions

34
.drone.yml Normal file
View File

@ -0,0 +1,34 @@
kind: pipeline
type: docker
name: stage-deploy
trigger:
event:
- push
steps:
- name: build
image: node:20.9
commands:
- node -v
- npm -v
- yarn --version
- yarn install
- yarn build
- name: scp
image: appleboy/drone-scp
settings:
host:
from_secret: server_ip
username:
from_secret: ssh_user
key:
from_secret: ssh_key
port:
from_secret: ssh_port
target:
- deploys/sweet_crm
source:
- .output
rm: true