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