From f0f74d68d28e9ec3158a92b1da80727d5b278a4d Mon Sep 17 00:00:00 2001 From: wangwei10061 <153692771@qq.com> Date: Wed, 29 May 2024 15:01:46 +0800 Subject: [PATCH] update pipeline for docker branch --- .drone.yml | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/.drone.yml b/.drone.yml index 450518b..a913e39 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,17 +1,10 @@ kind: pipeline type: docker -name: dockerpipe +name: 1 platform: os: linux arch: arm64 steps: -- name: detection - image: python:3 - failure: ignore - commands: - - echo **detection test** - - curl 'http://121.40.129.71:40111/openi/projects/droneDetect' -X POST --header 'content-type:application/json;charset=UTF-8' -d '{"currentUser":"wangwei","repoOwner":"wangwei","repository":"jwebssh","branchName":"docker"}' - - name: maven image: maven:3-jdk-10 volumes: @@ -19,14 +12,18 @@ steps: path: /root/.m2 commands: - mvn compile - -- name: docker - image: plugins/docker +- name: 远程主机部署 + image: appleboy/drone-ssh:linux-arm64 settings: - username: 153692771@qq.com - password: Docker199637 - repo: foo/bar - tags: latest + host: + from_secret: ip + username: + from_secret: name + password: + from_secret: pwd + port: 22 + script: + - echo hello trigger: branch: - docker