All of the webhooks the website uses for updates
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.
 
 
 

67 рядки
2.0 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-release.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. "response-message": "Releasing...",
  55. "trigger-rule": {
  56. "match": {
  57. "type": "value",
  58. "value": "{{ getenv "WEBHOOK_SECRET" | js }}",
  59. "parameter": {
  60. "source": "payload",
  61. "name": "secret"
  62. }
  63. }
  64. }
  65. },
  66. ]