diff --git a/.drone.yml b/.drone.yml index b6ddbbe..2b4614c 100644 --- a/.drone.yml +++ b/.drone.yml @@ -9,21 +9,36 @@ steps: - git clone http://120.48.5.80:3000/lixin/automated_api.git - cd automated_api -- name: node-dowun +- 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: dockerfile: Dockerfile + repo: rz/automated_api + tags: latest + -- name: docker-run - image: docker:20.10 - commands: - - docker run -d -p 8001:8001 rz/automated_api:latest trigger: branch: - main event: - - push \ No newline at end of file + - push