Die 5222.de Homepage https://www.5222.de
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.

43 lines
745B

  1. kind: pipeline
  2. type: docker
  3. name: default
  4. trigger:
  5. event:
  6. include:
  7. - push
  8. exclude:
  9. - pull_request
  10. steps:
  11. - name: build
  12. image: plugins/hugo
  13. settings:
  14. hugo_version: 0.57.2
  15. validate: true
  16. source: 5222.de/
  17. output: ../public
  18. - name: upload
  19. image: drillster/drone-rsync
  20. settings:
  21. hosts:
  22. from_secret: rsync_server
  23. source: ./public/
  24. target:
  25. from_secret: rsync_target
  26. recursive: true
  27. delete: true
  28. environment:
  29. RSYNC_KEY:
  30. from_secret: rsync_key
  31. RSYNC_USER:
  32. from_secret: rsync_user
  33. when:
  34. status:
  35. - success
  36. branch:
  37. - master
  38. event:
  39. exclude:
  40. - pull_request