diff --git a/.drone.yml b/.drone.yml index 7973ccc..48ac278 100644 --- a/.drone.yml +++ b/.drone.yml @@ -27,20 +27,9 @@ steps: script: - cd /root/docker/trash-api - docker build -f Dockerfile-api -t trash-api . - -- name: deploy-docker-container - 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 + - 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 @@ -69,4 +58,8 @@ steps: {{commit.message}} ``` 🌐 {{ build.link }} - {{/success}} \ No newline at end of file + {{/success}} + + when: + branch: + - dev \ No newline at end of file