aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2019-01-03 06:12:39 -0200
committerEuAndreh <eu@euandre.org>2019-01-03 06:42:41 -0200
commitb679e7d91f7af2d97bead966a17b715cdb020b1a (patch)
tree71926893088a93513971d950d5a19b012722fedf /templates
parentAdd custom nu gitconfig options in nugitconfig.ini file. (diff)
downloaddotfiles-b679e7d91f7af2d97bead966a17b715cdb020b1a.tar.gz
dotfiles-b679e7d91f7af2d97bead966a17b715cdb020b1a.tar.xz
Fix shellcheck ofsenses on bash scripts.
Diffstat (limited to 'templates')
-rw-r--r--templates/sr-ht-build.dhall47
1 files changed, 47 insertions, 0 deletions
diff --git a/templates/sr-ht-build.dhall b/templates/sr-ht-build.dhall
new file mode 100644
index 0000000..41b937b
--- /dev/null
+++ b/templates/sr-ht-build.dhall
@@ -0,0 +1,47 @@
+-- let buildTemplate =
+ λ ( repoName
+ : Text
+ )
+ → { image =
+ "debian/stretch"
+ , packages =
+ [ "curl" ]
+ , triggers =
+ [ { condition =
+ "failure"
+ , action =
+ "email"
+ , to =
+ "EuAndreh <eu@euandre.org>"
+ }
+ ]
+ , sources =
+ [ "https://git.sr.ht/~euandreh/" ++ repoName ]
+ , secrets =
+ [ "7159f943-811f-402d-bb6d-37cd764dc728" ]
+ , tasks =
+ [ { mapKey =
+ "setup"
+ , mapValue =
+ ''
+ curl https://nixos.org/nix/install | sh
+ echo '. $HOME/.nix-profile/etc/profile.d/nix.sh' >> $HOME/.buildenv''
+ },
+ { mapKey =
+ "test"
+ , mapValue =
+ ''
+ cd ${repoName}/
+ nix-build -A test''
+ },
+ { mapKey =
+ "publish"
+ , mapValue =
+ ''
+ cd ${repoName}/
+ nix-build -A publishScript
+ source env.sh
+ ./result/bin/publish.sh''
+ }
+ ]
+ }