feat: 部署

This commit is contained in:
gaze 2024-12-29 17:12:07 +08:00 committed by icezhb
parent c389bb7d95
commit aab9b43fe0
3 changed files with 34 additions and 2379 deletions

32
.drone.yml Normal file
View File

@ -0,0 +1,32 @@
kind: pipeline
type: docker
name: vue-deployment
steps:
# 编译
- name: build
image: node:lts
commands:
- npm install
- npm run build
# 部署
- name: deploy
image: appleboy/drone-scp
when:
branch: deploy
event: push
settings:
host:
from_secret: ssh_host
username:
from_secret: ssh_username
key:
from_secret: ssh_key
port:
from_secret: ssh_port
command_timeout: 2m
target:
from_secret: target
source:
- ./*

2
.gitignore vendored
View File

@ -28,3 +28,5 @@ coverage
*.sw? *.sw?
*.tsbuildinfo *.tsbuildinfo
pnpm-lock.yaml
package-lock.json

2379
package-lock.json generated

File diff suppressed because it is too large Load Diff