ci(.drone.yml): 更新构建配置
Some checks failed
continuous-integration/drone/push Build is failing

- 移除了缓存依赖和安装依赖的步骤
- 重命名了 node-dowun 步骤为 node-run
- 更新了 Docker 镜像名称
- 修正了 Dockerfile 路径
This commit is contained in:
lixin 2025-01-10 14:18:27 +08:00
parent b31cc6eb79
commit 42907bcf04

View File

@ -9,45 +9,18 @@ steps:
- git clone http://120.48.5.80:3000/lixin/automated_api.git
- cd automated_api
- name: cache-dependencies
image: drillster/drone-volume-cache
settings:
restore: true
mount:
- ./node_modules
- ./pnpm-lock.yaml
- name: install-dependencies
- name: node-dowun
image: node:22-alpine
commands:
- apk add --no-cache pnpm
- pnpm install --production
- name: cache-dependencies-post
image: drillster/drone-volume-cache
settings:
rebuild: true
mount:
- ./node_modules
- ./pnpm-lock.yaml
- name: build
image: node:22-alpine
commands:
- pnpm run build
- name: docker-build
image: plugins/docker
settings:
dockerfile: Dockerfile
repo: your-docker-repo/automated_api
tags: latest
auto_tag: true
dockerfile: Dockerfil
- name: docker-run
image: docker:20.10
commands:
- docker run -d -p 8001:8001 your-docker-repo/automated_api:latest
- docker run -d -p 8001:8001 rz/automated_api:latest
trigger:
branch: