From 3a5d1a7ce484079dc6340f3acb3cde3032ba2114 Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Mon, 27 Jan 2025 00:02:39 -0600 Subject: On CI-CD an example --- topics/systems/ci-cd.gmi | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'topics/systems/ci-cd.gmi') diff --git a/topics/systems/ci-cd.gmi b/topics/systems/ci-cd.gmi index 27269a4..a1ff2e3 100644 --- a/topics/systems/ci-cd.gmi +++ b/topics/systems/ci-cd.gmi @@ -109,6 +109,30 @@ To trigger CI manually, run this with the project name: curl https://ci.genenetwork.org/hooks/example-gn3 ``` +For gemtext we have a github hook that adds a forge-project and looks like + +```lisp +(define gn-gemtext-threads-project + (forge-project + (name "gn-gemtext-threads") + (repository "https://github.com/genenetwork/gn-gemtext-threads/") + (ci-jobs (list (forge-laminar-job + (name "gn-gemtext-threads") + (run (with-packages (list nss-certs openssl) + (with-imported-modules '((guix build utils)) + #~(begin + (use-modules (guix build utils)) + + (setenv "LC_ALL" "en_US.UTF-8") + (invoke #$(file-append tissue "/bin/tissue") + "pull" "issues.genenetwork.org")))))))) + (ci-jobs-trigger 'webhook))) +``` + +Guix forge can be found at + +=> https://git.systemreboot.net/guix-forge/ + ### git.genenetwork.org hooks TBD -- cgit v1.2.3