summaryrefslogtreecommitdiff
path: root/topics/systems/ci-cd.gmi
diff options
context:
space:
mode:
authorPjotr Prins2025-01-27 00:02:39 -0600
committerPjotr Prins2025-01-27 01:49:44 -0600
commit3a5d1a7ce484079dc6340f3acb3cde3032ba2114 (patch)
tree899a7c9d1c56b704c7f0d11839f071e1c0bb38c1 /topics/systems/ci-cd.gmi
parent12d363181d7ff4720e59ff5eae0224621ca505ca (diff)
downloadgn-gemtext-3a5d1a7ce484079dc6340f3acb3cde3032ba2114.tar.gz
On CI-CD an example
Diffstat (limited to 'topics/systems/ci-cd.gmi')
-rw-r--r--topics/systems/ci-cd.gmi24
1 files changed, 24 insertions, 0 deletions
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