.drone.yml 639 B

123456789101112131415161718192021222324252627282930313233343536
  1. kind: pipeline
  2. name: website
  3. steps:
  4. - name: prepare
  5. image: node:lts
  6. commands:
  7. - npm install --production-only
  8. - name: generate
  9. image: jekyll/minimal
  10. commands:
  11. - chown -R jekyll:jekyll .
  12. - jekyll build
  13. - name: deploy
  14. image: herbysk/drone-plugin-mvdir
  15. settings:
  16. source: _site
  17. target: /var/amber-lang.net/static
  18. volumes:
  19. - name: hosting
  20. path: /var/amber-lang.net
  21. when:
  22. branch:
  23. - gh-pages
  24. repo:
  25. - amber/amber-website
  26. node:
  27. amber_web: "true"
  28. volumes:
  29. - name: hosting
  30. host:
  31. path: /mnt/storage/VOLUMES/amber-lang.net