trigger sr.ht builds with Gitea webhooks
- generate an sr.ht token
- edit
giteart.example.ymlintogiteart.yml - run giteart (
java -jar giteart.jarorjava -jar giteart.jar /path/to/giteart.yml, defaults togiteart.yml) - keep giteart running (you could typically use a systemd unit)
- make sure your repository is public
- go to your repository webhooks settings and add a new gitea webhook (page url is
https://path/to/repository/settings/hooks/gitea/new)target URLishttp://your.server:port/hook, where port is your configuration portsecretis your configuration secret- leave other settings to their default values (
POSTwithapplication/json, triggered onpush eventson branch filter*,active)
- add a build manifest to your repository
- make sure you name it
.build.ymlor you put it in a.builds/folder!
- make sure you name it
- commit and push
- check a build was queued