.drone.yml 775 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. ---
  2. ##################
  3. # Build & Publish#
  4. ##################
  5. kind: pipeline
  6. name: build and publish
  7. steps:
  8. - name: build
  9. image: klakegg/hugo:alpine
  10. commands:
  11. - hugo -d /tmp/.build/public
  12. volumes:
  13. - name: hugo
  14. path: /tmp/.build/public
  15. - name: publish
  16. image: drillster/drone-rsync
  17. settings:
  18. user: root
  19. delete: true
  20. recursive: true
  21. args: "-v"
  22. key:
  23. from_secret: key
  24. hosts:
  25. - box.unbl.ink
  26. source: /tmp/.build/public/
  27. target: /home/user-data/www/onec.me/
  28. secrets: [ key ]
  29. volumes:
  30. - name: hugo
  31. path: /tmp/.build/public
  32. volumes:
  33. - name: docker
  34. host:
  35. path: /var/run/docker.sock
  36. - name: hugo
  37. host:
  38. path: /tmp/cache/drone/hugo