kind: pipeline name: default steps: - name: restore-cache image: drillster/drone-volume-cache volumes: - name: cache path: /cache settings: restore: true mount: - .m2 - name: build image: jaikuai/npm-mvn commands: - mvn -T 1C install -Dmaven.test.skip=true -Dmaven.repo.local=/drone/src/.m2/repository -Dmaven.compile.fork=true package - name: rebuild-cache image: drillster/drone-volume-cache volumes: - name: cache path: /cache settings: rebuild: true mount: - .m2 - name: docker-zk-service-center image: plugins/docker:20.14.0-linux-amd64 pull: false settings: purge: false add_host: - nas.fast-fun.cn:192.168.0.40 tags: - v1.0.0.${DRONE_BUILD_NUMBER} registry: nas.fast-fun.cn:5000 insecure: true dockerfile: Dockerfile mirror: https://1u6db9h5.mirror.aliyuncs.com repo: nas.fast-fun.cn:5000/zk/zk-service-center volumes: - name: cache host: path: /home/drone/cache