kind: pipeline type: docker name: master steps: # - name: restore-cache # image: meltwater/drone-cache # settings: # backend: filesystem # restore: true # cache_key: node_modules-ruikuke # archive_format: gzip # filesystem_cache_root: "/var/lib/cache" # mount: # - node_modules # volumes: # - name: cache # path: "/var/lib/cache" # Do stuff.. - name: build image: node:14 commands: # npm install --registry=https://registry.npmjs.org # - git ls-remote -h -t https://github.com.cnpmjs.org/nhn/raphael.git # - git config http.postBuffer 524288000 - npm install --registry=http://registry.npm.taobao.org # - yarn install - npm run build:prod # - name: rebuild-cache # image: meltwater/drone-cache # settings: # backend: filesystem # rebuild: true # cache_key: node_modules-ruikuke # archive_format: gzip # filesystem_cache_root: "/var/lib/cache" # mount: # - 'node_modules' # volumes: # - name: cache # path: "/var/lib/cache" - name: scp files image: appleboy/drone-scp settings: host: 47.103.90.190 username: from_secret: pro_user password: from_secret: pro_pass port: 22 target: /www/wwwroot/manage.jcook.com.cn source: dist/* - name: ssh image: appleboy/drone-ssh settings: host: 47.103.90.190 username: from_secret: pro_user password: from_secret: pro_pass port: 22 script: - cd /www/wwwroot/manage.jcook.com.cn - chown -R www.www dist - \cp -rf dist/* ./ - rm -rf dist # volumes: # - name: cache # host: # path: "/tmp/cache" trigger: branch: - master event: - push - merge