switched to webhook to trigger rebuild, since tildegit's drone is broke

This commit is contained in:
jan6 2021-10-10 21:58:05 +03:00
parent b07f4b62c7
commit 74cdd2311e
2 changed files with 7 additions and 8 deletions

View File

@ -1,8 +0,0 @@
kind: pipeline
type: exec
name: rebuild site
steps:
- name: say hi
commands:
- echo "hello!"

7
dist/webhook-test.cgi vendored Executable file
View File

@ -0,0 +1,7 @@
#!/bin/sh
printf "Content-Type: text/plain\r\n\r\n"
#env
if [ "$CONTENT_TYPE"="application/json" ] && [ "$HTTP_X_GITEA_EVENT"="push" ];then
echo "rebuilding"
"../build.sh"
fi