aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/sr-ht-build.yaml23
1 files changed, 23 insertions, 0 deletions
diff --git a/templates/sr-ht-build.yaml b/templates/sr-ht-build.yaml
new file mode 100644
index 0000000..8c55df6
--- /dev/null
+++ b/templates/sr-ht-build.yaml
@@ -0,0 +1,23 @@
+image: debian/stretch
+packages:
+ - curl
+triggers:
+ - condition: failure
+ action: email
+ to: EuAndreh <eu@euandre.org>
+sources:
+ - https://git.sr.ht/~euandreh/$REPO
+secrets:
+ - 7159f943-811f-402d-bb6d-37cd764dc728
+tasks:
+ - setup: |
+ curl https://nixos.org/nix/install | sh
+ echo '. ~/.nix-profile/etc/profile.d/nix.sh' >> ~/.buildenv
+ - tests: |
+ cd $REPO/
+ nix-build -A test
+ - docs: |
+ cd $REPO/
+ nix-build -A publishScript
+ source env.sh
+ ./result/bin/publish.sh