From af63d2604ef4bf0867609206fa373f6613489b17 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sat, 18 Jan 2020 15:37:05 +0000 Subject: 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. --- ops/sync-gcsr/default.nix | 4 ++++ ops/sync-gcsr/manifest.yaml | 21 +++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 ops/sync-gcsr/manifest.yaml (limited to 'ops') diff --git a/ops/sync-gcsr/default.nix b/ops/sync-gcsr/default.nix index 114ff221bed1..ae88b34124dc 100644 --- a/ops/sync-gcsr/default.nix +++ b/ops/sync-gcsr/default.nix @@ -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}"; + }; } diff --git a/ops/sync-gcsr/manifest.yaml b/ops/sync-gcsr/manifest.yaml new file mode 100644 index 000000000000..d5674695a816 --- /dev/null +++ b/ops/sync-gcsr/manifest.yaml @@ -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 -- cgit 1.4.1