The source code for my personal website https://yarmo.eu
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.

87 lines
2.0 KiB

1 month ago
1 month ago
1 month ago
  1. ---
  2. kind: pipeline
  3. type: docker
  4. name: deploy dev
  5. steps:
  6. - name: composer
  7. image: composer
  8. commands:
  9. - composer install
  10. - composer run-script minifyCSS
  11. - name: rsync to prism
  12. image: drillster/drone-rsync
  13. settings:
  14. hosts:
  15. from_secret: ssh_host
  16. port:
  17. from_secret: ssh_port
  18. user:
  19. from_secret: ssh_user
  20. key:
  21. from_secret: ssh_key
  22. source: ./
  23. target: ~/web/dev.yarmo.eu
  24. exclude: [ ".git/", ".gitignore", ".drone.yml", "composer.json", "composer.lock" ]
  25. - name: purge cache
  26. image: appleboy/drone-ssh
  27. settings:
  28. host:
  29. from_secret: ssh_host
  30. port:
  31. from_secret: ssh_port
  32. username:
  33. from_secret: ssh_user
  34. key:
  35. from_secret: ssh_key
  36. script:
  37. - rm -rf web/dev.yarmo.eu/cache/*
  38. trigger:
  39. branch:
  40. - dev
  41. ---
  42. kind: pipeline
  43. type: docker
  44. name: deploy prod
  45. steps:
  46. - name: composer
  47. image: composer
  48. commands:
  49. - composer install
  50. - composer run-script minifyCSS
  51. - name: rsync to prism
  52. image: drillster/drone-rsync
  53. settings:
  54. hosts:
  55. from_secret: ssh_host
  56. port:
  57. from_secret: ssh_port
  58. user:
  59. from_secret: ssh_user
  60. key:
  61. from_secret: ssh_key
  62. source: ./
  63. target: ~/web/yarmo.eu
  64. exclude: [ ".git/", ".gitignore", ".drone.yml", "composer.json", "composer.lock" ]
  65. - name: purge cache
  66. image: appleboy/drone-ssh
  67. settings:
  68. host:
  69. from_secret: ssh_host
  70. port:
  71. from_secret: ssh_port
  72. username:
  73. from_secret: ssh_user
  74. key:
  75. from_secret: ssh_key
  76. script:
  77. - rm -rf web/yarmo.eu/cache/*
  78. trigger:
  79. branch:
  80. - main