forked from DGNum/infrastructure
feat(infra): Add checks for meta
This commit is contained in:
parent
fdd4f4b443
commit
e9c6f0a2b6
3 changed files with 50 additions and 1 deletions
22
.forgejo/workflows/check-meta.yaml
Normal file
22
.forgejo/workflows/check-meta.yaml
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
name: Check meta
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- 'meta/*'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
check_meta:
|
||||||
|
runs-on: nix
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Check the validity of meta options
|
||||||
|
run: nix-build meta/verify.nix -A meta
|
||||||
|
|
||||||
|
check_dns:
|
||||||
|
runs-on: nix
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Check the validity of the DNS configuration
|
||||||
|
run: nix-build meta/verify.nix -A dns --no-out-link
|
|
@ -3,6 +3,20 @@
|
||||||
let
|
let
|
||||||
sources = import ../npins;
|
sources = import ../npins;
|
||||||
pkgs = import sources.nixpkgs { };
|
pkgs = import sources.nixpkgs { };
|
||||||
|
|
||||||
|
dns = import sources."dns.nix";
|
||||||
|
|
||||||
|
lib = import sources.nix-lib {
|
||||||
|
inherit (pkgs) lib;
|
||||||
|
|
||||||
|
keysRoot = ../keys;
|
||||||
|
};
|
||||||
in
|
in
|
||||||
|
|
||||||
builtins.deepSeq ((import ./.) pkgs.lib) { }
|
{
|
||||||
|
meta = builtins.deepSeq ((import ./.) pkgs.lib) { };
|
||||||
|
|
||||||
|
dns = dns.util.${builtins.currentSystem}.writeZone "dgnum.eu" (
|
||||||
|
pkgs.lib.recursiveUpdate { SOA.serial = 0; } (import ./dns.nix { inherit dns lib; })
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
|
@ -52,6 +52,19 @@
|
||||||
"url": "https://api.github.com/repos/nix-community/disko/tarball/v1.4.1",
|
"url": "https://api.github.com/repos/nix-community/disko/tarball/v1.4.1",
|
||||||
"hash": "1hm5fxpbbmzgl3qfl6gfc7ikas4piaixnav27qi719l73fnqbr8x"
|
"hash": "1hm5fxpbbmzgl3qfl6gfc7ikas4piaixnav27qi719l73fnqbr8x"
|
||||||
},
|
},
|
||||||
|
"dns.nix": {
|
||||||
|
"type": "GitRelease",
|
||||||
|
"repository": {
|
||||||
|
"type": "Git",
|
||||||
|
"url": "https://git.hubrecht.ovh/hubrecht/dns.nix"
|
||||||
|
},
|
||||||
|
"pre_releases": false,
|
||||||
|
"version_upper_bound": null,
|
||||||
|
"version": "v1.2.1",
|
||||||
|
"revision": "66979725afe2164491be38ffff78460cc9b0ffd7",
|
||||||
|
"url": null,
|
||||||
|
"hash": "1bashjbh71dqs32yld7ihw2vz0vrad73pc35crf3qck8ssgpzv7d"
|
||||||
|
},
|
||||||
"liminix": {
|
"liminix": {
|
||||||
"type": "Git",
|
"type": "Git",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|
Loading…
Reference in a new issue