feat: 部署
This commit is contained in:
parent
c389bb7d95
commit
aab9b43fe0
32
.drone.yml
Normal file
32
.drone.yml
Normal 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
2
.gitignore
vendored
@ -28,3 +28,5 @@ coverage
|
|||||||
*.sw?
|
*.sw?
|
||||||
|
|
||||||
*.tsbuildinfo
|
*.tsbuildinfo
|
||||||
|
pnpm-lock.yaml
|
||||||
|
package-lock.json
|
||||||
|
2379
package-lock.json
generated
2379
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user