.drone.yml 712 B

12345678910111213141516171819202122232425262728293031
  1. kind: pipeline
  2. type: docker
  3. name: default
  4. steps:
  5. - name: deploy
  6. image: appleboy/drone-scp
  7. settings:
  8. user:
  9. from_secret: user
  10. # key:
  11. # from_secret: ssh_key
  12. password:
  13. from_secret: passwd
  14. host: mastodon.bida.im
  15. source: ./
  16. target: ~/MastodonMegafono
  17. - name: run
  18. image: appleboy/drone-ssh
  19. settings:
  20. user:
  21. from_secret: user
  22. password:
  23. from_secret: passwd
  24. host: mastodon.bida.im
  25. script:
  26. - kill -9 `ps aufx | grep megafono_bot | grep bash | awk '{print $2}'`
  27. - cd ~/MastodonMegafono
  28. - bash megafono_bot.sh -f megafono.txt
  29. - bash megafono_bot.sh -f supportabida.txt