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 pull: false commands: - mvn install -Dmaven.repo.local=/drone/src/.m2/repository -Dmaven.test.skip=true package - name: rebuild-cache image: drillster/drone-volume-cache volumes: - name: cache path: /cache settings: rebuild: true mount: - .m2 - name: docker image: plugins/docker settings: tags: - latest - 1.2.${DRONE_BUILD_NUMBER} registry: nas.fast-fun.cn:5000 insecure: true repo: nas.fast-fun.cn:5000/zhl/pdms-oss-api # - name: deploy # image: appleboy/drone-ssh # settings: # host: 192.168.0.41 # username: zhl # password: 123456 # script: # - docker rm -f oss-api # - docker rmi -f nas.fast-fun.cn:5000/zhl/pdms-oss-api # - docker run -d --name oss-api -l traefik.port=8082 --restart=always nas.fast-fun.cn:5000/zhl/pdms-oss-api volumes: - name: cache host: path: /home/drone/cache