2024-08-24 10:43:19 +00:00
|
|
|
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
|
2024-08-24 12:26:34 +00:00
|
|
|
- yarn generate
|
2024-08-24 10:43:19 +00:00
|
|
|
|
|
|
|
- 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:
|
2024-08-24 12:36:36 +00:00
|
|
|
- .otput/public
|
2024-08-24 10:43:19 +00:00
|
|
|
rm: true
|