.nixos-gitlab-ci.yml.nix 399 Bytes
Newer Older
Matthias Adamczyk's avatar
Matthias Adamczyk committed
1
2
3
4
5
6
let
  inherit (import ./.) hosts pkgs lib;

  jobs = lib.mapAttrs (
    name: host: {
      stage = "build";
Matthias Adamczyk's avatar
Fix CI    
Matthias Adamczyk committed
7
      tags = [ "nix" ];
Matthias Adamczyk's avatar
Matthias Adamczyk committed
8
9
      variables.GIT_DEPTH = 0;
      script = [
Matthias Adamczyk's avatar
Fix CI    
Matthias Adamczyk committed
10
        "nix-build --show-trace -A deploy.${name}"
Matthias Adamczyk's avatar
Matthias Adamczyk committed
11
12
13
14
      ];
    }
  ) (
    lib.filterAttrs (
Matthias Adamczyk's avatar
Fix CI    
Matthias Adamczyk committed
15
      name: host: !host.config.finf.skipCI
Matthias Adamczyk's avatar
Matthias Adamczyk committed
16
17
18
19
    ) hosts
  );

in pkgs.writeText "nixos-gitlab-ci.yml" (builtins.toJSON jobs)