kind: pipeline type: docker name: default 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: dockerfile: Dockerfile repo: rz/automated_api tags: latest trigger: branch: - main event: - push