kind: pipeline type: docker name: ci steps: - name: install & build image: node commands: - npm config set registry http://mirrors.cloud.tencent.com/npm/ - npm i -g pnpm - pnpm i - pnpm build - tar -zcvf dist.tar ./dist ./default.conf ./Dockerfile - name: upload image: appleboy/drone-scp settings: host: from_secret: host username: from_secret: username password: from_secret: password port: 22 command_timeout: 2m target: /www/builder source: - ./dist.tar