kind: pipeline name: default steps: - name: restore-cache image: rpi.it5000.com:5000/drillster/drone-volume-cache volumes: - name: cache path: /cache settings: restore: true mount: - ./node_modules - name: build image: rpi.it5000.com:5000/node:16.15 commands: - npm config set registry http://nexus.fast-fun.cn:92/repository/npm-public/ - npm install - npm run build:prod - name: rebuild-cache image: rpi.it5000.com:5000/drillster/drone-volume-cache volumes: - name: cache path: /cache settings: rebuild: true mount: - ./node_modules - name: docker-web image: rpi.it5000.com:5000/plugins/docker privileged: true volumes: - name: docker path: /var/run/docker.sock commands: - docker build -t nas.fast-fun.cn:5000/zk/station-log-frontend:1.0.${DRONE_BUILD_NUMBER} -f Dockerfile . - docker push nas.fast-fun.cn:5000/zk/station-log-frontend:1.0.${DRONE_BUILD_NUMBER} volumes: - name: cache host: path: /home/drone/cache - name: docker host: path: /var/run/docker.sock