automated_api/.drone.yml

45 lines
728 B
YAML
Raw Normal View History

2025-01-10 12:22:50 +08:00
kind: pipeline
type: docker
name: default
2025-01-10 12:22:50 +08:00
steps:
- name: git-clone
image: alpine/git
commands:
- git clone http://120.48.5.80:3000/lixin/automated_api.git
- cd automated_api
- name: setup-pnpm
image: node:22-alpine
commands:
- npm install -g pnpm
- pnpm config set registry https://registry.npmmirror.com
- name: install-deps
image: node:22-alpine
commands:
- pnpm install
volumes:
- name: node_modules
path: /app/node_modules
- name: build
image: node:22-alpine
commands:
- pnpm run build
- name: docker-build
image: plugins/docker
settings:
2025-01-10 14:20:36 +08:00
dockerfile: Dockerfile
repo: rz/automated_api
tags: latest
2025-01-10 12:22:50 +08:00
trigger:
branch:
- main
2025-01-10 12:22:50 +08:00
event:
- push