Jekyll blog hosted on my website. https://florian-latifi.at
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.
 
 
 

61 lines
1.0 KiB

  1. kind: pipeline
  2. name: default
  3. steps:
  4. - name: restore-cache
  5. image: drillster/drone-volume-cache
  6. volumes:
  7. - name: cache
  8. path: /cache
  9. settings:
  10. restore: true
  11. mount:
  12. - vendor
  13. - name: build
  14. image: flortsch/ruby-native
  15. commands:
  16. - bundle install --deployment
  17. - bundle exec jekyll build
  18. - name: rebuild-cache
  19. image: drillster/drone-volume-cache
  20. volumes:
  21. - name: cache
  22. path: /cache
  23. settings:
  24. rebuild: true
  25. mount:
  26. - vendor
  27. - name: deploy
  28. image: drillster/drone-rsync
  29. settings:
  30. hosts: [ "lafl-server.florian-latifi.at" ]
  31. user: jekyll-blog
  32. source: _site
  33. target: /var/www/jekyll-blog/
  34. recursive: true
  35. delete: true
  36. key:
  37. from_secret: ssh_key
  38. when:
  39. branch:
  40. - master
  41. - name: notify
  42. image: drillster/drone-email
  43. settings:
  44. host: lafl-server.florian-latifi.at
  45. port: 25
  46. from: Drone <drone@lafl-server.florian-latifi.at>
  47. when:
  48. status:
  49. - failure
  50. - success
  51. volumes:
  52. - name: cache
  53. host:
  54. path: /var/lib/drone/temp