.drone.yml 845 B

12345678910111213141516171819202122232425262728293031
  1. ---
  2. ################
  3. # Build & Test #
  4. ################
  5. kind: pipeline
  6. name: run_tests
  7. steps:
  8. # Run tests against Python/Flask engine backend (with pytest)
  9. - name: build and push
  10. image: klakegg/hugo:debian
  11. environment:
  12. sshkey:
  13. from_secret: key
  14. commands:
  15. # Install dependencies
  16. - wget https://github.com/gohugoio/hugo/releases/download/v0.110.0/hugo_0.110.0_linux-amd64.tar.gz
  17. - tar zxvf hugo_0.110.0_linux-amd64.tar.gz
  18. # Start with a fresh database (which is already running as a service from Drone)
  19. - hugo
  20. - mkdir ~/.ssh/
  21. - echo $sshkey > ~/.ssh/ed25519
  22. - rsync -avz --delete public/ root@box.unbl.ink:/home/user-data/www/unbl.ink/
  23. volumes:
  24. - name: docker
  25. host:
  26. path: /var/run/docker.sock
  27. - name: pip_cache
  28. host:
  29. path: /tmp/cache/drone/pip