.drone.yml 791 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. - ls /tmp/.build/public
  13. volumes:
  14. - name: hugo
  15. path: /tmp/.build/public
  16. - name: publish
  17. image: drillster/drone-rsync
  18. settings:
  19. user: root
  20. key:
  21. from_secret: key
  22. hosts:
  23. - box.unbl.ink
  24. source: /tmp/.build/public
  25. target: /home/user-data/www/unbl.ink/
  26. secrets: [ key ]
  27. commands:
  28. - ls /tmp/.build/public
  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