.drone.yml 843 B

1234567891011121314151617181920212223242526272829
  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:alpine
  11. environment:
  12. KEY:
  13. from_secret: key
  14. commands:
  15. # Install dependencies
  16. - apk add rsync openssh
  17. - wget https://github.com/gohugoio/hugo/releases/download/v0.110.0/hugo_0.110.0_linux-amd64.tar.gz
  18. - tar zxvf hugo_0.110.0_linux-amd64.tar.gz
  19. # Start with a fresh database (which is already running as a service from Drone)
  20. - hugo
  21. - mkdir ~/.ssh/
  22. - echo "$KEY" > $HOME/.ssh/ed25519
  23. - rsync -avz --delete -e "ssh -i $HOME/.ssh/ed25519" public/ root@box.unbl.ink:/home/user-data/www/unbl.ink/
  24. volumes:
  25. - name: docker
  26. host:
  27. path: /var/run/docker.sock