Update .drone.yml

dev
Vladimir Kutkovoy 1 year ago
parent aa3d6872a2
commit faa1016918
  1. 21
      .drone.yml

@ -27,20 +27,9 @@ steps:
script: script:
- cd /root/docker/trash-api - cd /root/docker/trash-api
- docker build -f Dockerfile-api -t trash-api . - docker build -f Dockerfile-api -t trash-api .
- docker stop trash-api || true
- name: deploy-docker-container - docker rm trash-api || true
image: appleboy/drone-ssh - docker run -d -p 1778:1778 --name trash-api trash-api
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 - name: telegram notification
image: appleboy/drone-telegram image: appleboy/drone-telegram
@ -70,3 +59,7 @@ steps:
``` ```
🌐 {{ build.link }} 🌐 {{ build.link }}
{{/success}} {{/success}}
when:
branch:
- dev
Loading…
Cancel
Save