kind: pipeline type: docker name: deployment volumes: - name: dockersock host: path: /var/run/docker.sock steps: - name: check image: alpine commands: - ls -la - ls -la Dockerfile # 查看当前文件夹是否包含了Dockerfile - name: publish image: plugins/docker settings: pull: if-not-exists # 如果镜像不存在则拉取,免去每次都要重新下载 dockerfile: Dockerfile tags: latest # you need insecure: true since we don't have a TLS certificate insecure: true registry: 192.168.31.104:8082 repo: 192.168.31.104:8082/tiamo/user-point-management # create the docker_username and docker_password secrets in Drone, with Nexus' username & password secrets: [ drone, dronepw ] storage_driver: vfs #解决群晖btrfs,而docker内用的是vfs volumes: - name: dockersock path: /var/run/docker.sock #trigger: # branch: # - master