555
Some checks reported errors
continuous-integration/drone/push Build encountered an error

This commit is contained in:
2025-06-24 19:36:50 +08:00
parent eb1545aca0
commit fca0698644
2 changed files with 106 additions and 4 deletions

View File

@ -5,7 +5,7 @@ name: test # 当前管道的名称
steps:
# 第一步:构建项目
- name: build
image: registry.cn-hangzhou.aliyuncs.com/library/node:18-alpine
image: hub-mirror.c.163.com/library/node:18-alpine
commands:
- npm install
- npm run build
@ -15,7 +15,7 @@ steps:
# 第二步上传静态资源到腾讯云COS
- name: upload-to-cos
image: registry.cn-hangzhou.aliyuncs.com/tencentcloud/coscmd:latest
image: tencentcloudcli/coscmd:latest
environment:
COS_SECRET_ID:
from_secret: cos_secret_id
@ -40,7 +40,7 @@ steps:
# 第三步:部署到服务器
- name: deploy
image: registry.cn-hangzhou.aliyuncs.com/appleboy/drone-ssh
image: appleboy/drone-ssh
settings:
host:
from_secret: server_host
@ -64,7 +64,7 @@ steps:
# 第四步:上传构建文件
- name: upload
image: registry.cn-hangzhou.aliyuncs.com/appleboy/drone-scp
image: appleboy/drone-scp
settings:
host:
from_secret: server_host