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.

44 lines
772 B

1 year ago
1 year ago
  1. ---
  2. kind: pipeline
  3. type: docker
  4. name: default
  5. platform:
  6. os: linux
  7. arch: amd64
  8. steps:
  9. - name: Version check
  10. image: n0emis/hugo-builder
  11. commands:
  12. - echo "Checking Hugo version."
  13. - hugo version
  14. - git submodule init && git submodule update
  15. - name: Build
  16. image: n0emis/hugo-builder
  17. commands:
  18. - hugo --minify --destination /drone/src/build
  19. - cd /drone/src/build && ls
  20. - name: Deploy
  21. image: appleboy/drone-scp
  22. settings:
  23. host:
  24. - pasiphae.int.goe.de.n0emis.eu
  25. user: root
  26. key:
  27. from_secret: ssh_key
  28. proxy_host: kallisto.int.goe.de.n0emis.eu
  29. proxy_username: ci
  30. proxy_key:
  31. from_secret: ssh_key
  32. source: /drone/src/build/*
  33. target: /var/www/n0emis.eu/
  34. strip_components: 3
  35. trigger:
  36. branch:
  37. - main
  38. ...