Compare commits

...

10 Commits

Author SHA1 Message Date
1324cf9612 'build'
All checks were successful
continuous-integration/drone/tag Build is passing
2024-08-15 09:44:29 +08:00
829259d0f6 Merge branch 'master' of http://101.43.112.107:3000/root/feiyang-web 2024-08-15 09:43:42 +08:00
e304ff4210 'delete-build' 2024-08-15 09:42:07 +08:00
5eaf8c456c 'build'
All checks were successful
continuous-integration/drone Build is passing
2024-08-13 16:08:43 +08:00
93a31b7043 'build'
All checks were successful
continuous-integration/drone Build is passing
2024-08-13 16:06:59 +08:00
6a6b469ddd 'build'
All checks were successful
continuous-integration/drone Build is passing
2024-08-13 16:00:56 +08:00
4f522e34f1 'build'
Some checks failed
continuous-integration/drone Build is failing
2024-08-13 15:58:41 +08:00
75219b89dc 'build' 2024-08-13 15:56:55 +08:00
9860a91901 'build' 2024-08-13 15:52:54 +08:00
7089b9ea86 'build' 2024-08-13 15:47:13 +08:00

31
.drone.yml Normal file
View File

@ -0,0 +1,31 @@
kind: pipeline
type: docker
name: feiyang-web
steps:
- name: build
image: node:18.18.0
volumes:
- name: build-file
path: /build/dist
commands:
- npm install --registry=https://registry.npmmirror.com/
- npm run build
- cp -r dist/. /build/dist
- name: remote_transmit
image: appleboy/drone-ssh # SSH工具镜像
settings:
host: 101.43.112.107 # 远程连接地址
username: root # 远程连接账号
password:
from_secret: ssh_password # 从Secret中读取SSH密码
port: 22 # 远程连接端口
command_timeout: 5m # 远程执行命令超时时间
script:
- scp -r /feiyang/build/index root@1.94.20.201:~/server
volumes: # 定义流水线挂载目录,用于共享数据
- name: build-file
host:
path: /feiyang/build/index # 从宿主机中挂载的目录