Public Youmubot system, modular (I hope!) and safe and fast...
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
790B

  1. ---
  2. kind: pipeline
  3. type: docker
  4. name: default
  5. trigger:
  6. event:
  7. - push
  8. - pull_request
  9. steps:
  10. - name: format_check
  11. image: rust:1.41
  12. commands:
  13. - rustup component add rustfmt
  14. - cargo fmt -- --check
  15. - name: cargo_check
  16. image: rust:1.41
  17. commands:
  18. - cargo check
  19. ---
  20. kind: pipeline
  21. type: docker
  22. name: deploy
  23. trigger:
  24. branch:
  25. - master
  26. event:
  27. - push
  28. steps:
  29. - name: build_release
  30. image: rust:1.41
  31. commands:
  32. - cargo build --release
  33. - name: deploy
  34. image: drillster/drone-rsync
  35. environment:
  36. RSYNC_KEY:
  37. from_secret: rsync_key
  38. settings:
  39. user: natsukagami
  40. args: -zz
  41. hosts:
  42. - "104.248.149.133" # Youmubot
  43. source:
  44. - ./target/release/youmubot
  45. target:
  46. - ~/youmubot/youmubot
  47. script:
  48. - systemctl --user restart youmubot