aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCynthia Revström <me@cynthia.re>2020-04-23 13:12:22 +0200
committerCynthia Revström <me@cynthia.re>2020-04-23 13:12:22 +0200
commit7fe5c5b3049ef64d1abbf0ed5080b249e3e062ce (patch)
treec166b5d9dbfe7f992e273fa7c3d4c05e401f714b
parentb93e14bfd077c8da8ff67ae1b64894e78e56b0e5 (diff)
add post-receive-ci hook
-rwxr-xr-xhooks/post-receive-ci8
1 files changed, 8 insertions, 0 deletions
diff --git a/hooks/post-receive-ci b/hooks/post-receive-ci
new file mode 100755
index 0000000..32459f9
--- /dev/null
+++ b/hooks/post-receive-ci
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+CI_URL="https://ci.cynthia.re/webhook/src"
+
+repo_name=$(basename $(pwd))
+echo $repo_name
+
+curl -X POST -H "X-CynCI-Token: $CYNCI_TOKEN" --data "{\"repo\":\"${repo_name}\"}" $CI_URL \ No newline at end of file