-
-
Notifications
You must be signed in to change notification settings - Fork 312
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
87 changed files
with
1,386 additions
and
1,504 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,8 @@ | ||
/.pls_cache | ||
*.o | ||
*~ | ||
Makefile | ||
Makefile.in | ||
.deps | ||
.hydra-data | ||
/config.guess | ||
/config.log | ||
/config.status | ||
/config.sub | ||
/configure | ||
/depcomp | ||
/libtool | ||
/ltmain.sh | ||
/autom4te.cache | ||
/aclocal.m4 | ||
/missing | ||
/install-sh | ||
.test_info.* | ||
/src/sql/hydra-postgresql.sql | ||
/src/sql/hydra-sqlite.sql | ||
/src/sql/tmp.sqlite | ||
/src/hydra-eval-jobs/hydra-eval-jobs | ||
/src/root/static/bootstrap | ||
/src/root/static/js/flot | ||
/tests | ||
/doc/manual/images | ||
/doc/manual/manual.html | ||
/doc/manual/manual.pdf | ||
/t/.bzr* | ||
/t/.git* | ||
/t/.hg* | ||
/t/nix | ||
/t/data | ||
/t/jobs/config.nix | ||
t/jobs/declarative/project.json | ||
/inst | ||
hydra-config.h | ||
hydra-config.h.in | ||
result | ||
result-* | ||
outputs | ||
config | ||
stamp-h1 | ||
src/hydra-evaluator/hydra-evaluator | ||
src/hydra-queue-runner/hydra-queue-runner | ||
src/root/static/fontawesome/ | ||
src/root/static/bootstrap*/ |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# The `default.nix` in flake-compat reads `flake.nix` and `flake.lock` from `src` and | ||
# returns an attribute set of the shape `{ defaultNix, shellNix }` | ||
|
||
(import (fetchTarball https://github.com/edolstra/flake-compat/archive/master.tar.gz) { | ||
(import (fetchTarball "https://github.com/edolstra/flake-compat/archive/master.tar.gz") { | ||
src = ./.; | ||
}).defaultNix |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
srcs = files( | ||
'src/SUMMARY.md', | ||
'src/about.md', | ||
'src/api.md', | ||
'src/configuration.md', | ||
'src/hacking.md', | ||
'src/installation.md', | ||
'src/introduction.md', | ||
'src/jobs.md', | ||
'src/monitoring/README.md', | ||
'src/notifications.md', | ||
'src/plugins/README.md', | ||
'src/plugins/RunCommand.md', | ||
'src/plugins/declarative-projects.md', | ||
'src/projects.md', | ||
'src/webhooks.md', | ||
) | ||
|
||
manual = custom_target( | ||
'manual', | ||
command: [ | ||
mdbook, | ||
'build', | ||
'@SOURCE_ROOT@/doc/manual', | ||
'-d', meson.current_build_dir() / 'html' | ||
], | ||
depend_files: srcs, | ||
output: ['html'], | ||
build_by_default: true, | ||
) | ||
|
||
install_subdir( | ||
manual.full_path(), | ||
install_dir: get_option('datadir') / 'doc/hydra', | ||
strip_directory: true, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,27 @@ | ||
# Webhooks | ||
|
||
Hydra can be notified by github's webhook to trigger a new evaluation when a | ||
Hydra can be notified by github or gitea with webhooks to trigger a new evaluation when a | ||
jobset has a github repo in its input. | ||
To set up a github webhook go to `https://github.com/<yourhandle>/<yourrepo>/settings` and in the `Webhooks` tab | ||
click on `Add webhook`. | ||
|
||
## GitHub | ||
|
||
To set up a webhook for a GitHub repository go to `https://github.com/<yourhandle>/<yourrepo>/settings` | ||
and in the `Webhooks` tab click on `Add webhook`. | ||
|
||
- In `Payload URL` fill in `https://<your-hydra-domain>/api/push-github`. | ||
- In `Content type` switch to `application/json`. | ||
- The `Secret` field can stay empty. | ||
- For `Which events would you like to trigger this webhook?` keep the default option for events on `Just the push event.`. | ||
|
||
Then add the hook with `Add webhook`. | ||
|
||
## Gitea | ||
|
||
To set up a webhook for a Gitea repository go to the settings of the repository in your Gitea instance | ||
and in the `Webhooks` tab click on `Add Webhook` and choose `Gitea` in the drop down. | ||
|
||
- In `Target URL` fill in `https://<your-hydra-domain>/api/push-gitea`. | ||
- Keep HTTP method `POST`, POST Content Type `application/json` and Trigger On `Push Events`. | ||
- Change the branch filter to match the git branch hydra builds. | ||
|
||
Then add the hook with `Add webhook`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.