From 69e5af8d20177f9b6921eb0f927e145746e8803c Mon Sep 17 00:00:00 2001 From: wanggang <76527413@qq.com> Date: Fri, 4 Jun 2021 12:47:47 +0800 Subject: [PATCH] test --- .drone.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index f69e9b9..8286262 100644 --- a/.drone.yml +++ b/.drone.yml @@ -14,6 +14,16 @@ steps: - ls -a - docker-compose config - name: deploy + image: appleboy/drone-scp:linux-amd64 + settings: + host: 10.10.14.176 + port: 22 + username: root + password: + from_secret: ssh_password + target: ~/publish/cicd + srource: docker-compose.yml + - name: restart image: appleboy/drone-ssh:linux-amd64 settings: host: 10.10.14.176 @@ -22,9 +32,8 @@ steps: password: from_secret: ssh_password script: - - mv .env .env.example - - pwd - - ls /root + - cd ~/publish/cicd + - ./start.sh # - apt -y install git # - mkdir -p ~/publish/cicd && cd $_ # - git init