All of the webhooks the website uses for updates
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 

71 řádky
2.1 KiB

  1. [
  2. {
  3. "id": "sexy-push",
  4. "execute-command": "{{ getenv "WEBHOOK_SCRIPT_DIR" }}/deploy.sh",
  5. "command-working-directory": "/home/web/crux.sexy/",
  6. "response-message": "Updating website...",
  7. "trigger-rule": {
  8. "match": {
  9. "type": "payload-hash-sha1",
  10. "secret": "f51ab9138d3b1b59db01780f8cba7f0aed823f0419e872d6e05a3feb1e061d75",
  11. "parameter": {
  12. "source": "header",
  13. "name": "X-Hub-Signature"
  14. }
  15. }
  16. }
  17. },
  18. {
  19. "id": "game-push",
  20. "execute-command": "{{ getenv "WEBHOOK_SCRIPT_DIR" }}/deploy-branch.sh",
  21. "command-working-directory": "/home/web/crux.sexy/",
  22. "pass-arguments-to-command": [
  23. {
  24. "source": "payload",
  25. "name": "repository.name"
  26. },
  27. {
  28. "source": "payload",
  29. "name": "ref"
  30. }
  31. ],
  32. "response-message": "Updating...",
  33. "trigger-rule": {
  34. "match": {
  35. "type": "value",
  36. "value": "{{ getenv "WEBHOOK_SECRET" | js }}",
  37. "parameter": {
  38. "source": "payload",
  39. "name": "secret"
  40. }
  41. }
  42. }
  43. },
  44. {
  45. "id": "game-release",
  46. "execute-command": "{{ getenv "WEBHOOK_SCRIPT_DIR" }}/deploy-branch.sh",
  47. "command-working-directory": "/home/web/crux.sexy/",
  48. "pass-arguments-to-command": [
  49. {
  50. "source": "payload",
  51. "name": "repository.name"
  52. },
  53. {
  54. "source": "payload",
  55. "name": "ref"
  56. }
  57. ],
  58. "response-message": "Updating...",
  59. "trigger-rule": {
  60. "match": {
  61. "type": "value",
  62. "value": "{{ getenv "WEBHOOK_SECRET" | js }}",
  63. "parameter": {
  64. "source": "payload",
  65. "name": "secret"
  66. }
  67. }
  68. }
  69. },
  70. ]