kind: pipeline name: default steps: - name: restore-cache image: drillster/drone-volume-cache settings: restore: true mount: - ./repository volumes: - name: cache path: /cache - name: mvn-package image: maven:3.8.4-jdk-8 commands: - mvn clean package -Dmaven.test.skip=true -Dmaven.repo.local=./repository -s ./setting.xml - name: rebuild-cache image: drillster/drone-volume-cache settings: rebuild: true mount: - ./repository volumes: - name: cache path: /cache - name: docker-zk-station-server 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-station-server volumes: - name: cache host: path: /home/drone/cache