diff --git a/.drone.yml b/.drone.yml index 34adc5f..e49064d 100644 --- a/.drone.yml +++ b/.drone.yml @@ -28,6 +28,20 @@ steps: - cd /root/docker/trash-api - docker build -f Dockerfile-api -t trash-api . +- name: build-docker-image + image: appleboy/drone-ssh + settings: + host: 192.168.0.129 + username: + from_secret: username_deploy + password: + from_secret: password_deploy + port: 22 + script: + - docker stop trash-api || true + - docker rm trash-api || true + - docker run -d -p 1778:1778 --name trash-api trash-api + - name: telegram notification image: appleboy/drone-telegram settings: