feat(sync-gcsr): Add builds.sr.ht build manifest

Adds a simple build manifest that builds everything in ci-builds.nix
and pushes results to Cachix on success.
This commit is contained in:
Vincent Ambo 2020-01-18 15:37:05 +00:00
parent b8355066e8
commit af63d2604e
2 changed files with 25 additions and 0 deletions

View file

@ -7,4 +7,8 @@ pkgs.buildGo.program {
deps = with pkgs.third_party; map (p: p.gopkg) [
gopkgs."gopkg.in".src-d.go-git
];
x_defs = {
"main.BuildManifest" = "${./manifest.yaml}";
};
}

View file

@ -0,0 +1,21 @@
image: nixos/latest
sources:
- https://git.tazj.in/
secrets:
# cachix/tazjin
- 3cea9995-9a90-4bb5-9b50-5d00c3694757
tasks:
- setup: |
echo "export CACHIX_SIGNING_KEY=$(cat ~/.cachix-tazjin)" >> ~/.buildenv
nix-env -iA third_party.cachix -f git.tazj.in
cachix use tazjin
- build: |
cd git.tazj.in
nix-build ci-builds.nix > built-paths
- cache: |
cd git.tazj.in
cat built-paths | cachix push tazjin
triggers:
- action: email
condition: failure
to: mail@tazj.in