From 70bf71833027331dd6955d9fa3973a7a79bb178b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AB=98=E7=BA=A7=E4=BA=91=E8=84=91=E7=A0=94=E5=8F=91?= =?UTF-8?q?=E5=B7=A5=E7=A8=8B=E5=B8=88?= <153692773@qq.com> Date: Fri, 24 Feb 2023 09:50:37 +0800 Subject: [PATCH] update pipeline for docker branch --- .drone.yml | 26 ++++++++------------------ 1 file changed, 8 insertions(+), 18 deletions(-) diff --git a/.drone.yml b/.drone.yml index 86ac247..2bddad5 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,6 +1,6 @@ kind: pipeline type: docker -name: 1 +name: dockerpipe platform: os: linux arch: arm64 @@ -12,24 +12,14 @@ steps: path: /root/.m2 commands: - mvn compile -- name: 远程主机部署 - image: appleboy/drone-ssh:linux-arm64 + +- name: docker + image: plugins/docker settings: - host: - from_secret: ip - username: - from_secret: name - password: - from_secret: pwd - port: 22 - script: - - chmod +x /home/deploy.sh - - bash /home/deploy.sh - -volumes: - - name: cache - host: - path: /var/lib/cache + username: 153692771@qq.com + password: Docker199637 + repo: foo/bar + tags: latest trigger: branch: - docker