chore: remove old ci.nix

This commit is contained in:
technofab 2025-12-21 18:44:58 +01:00
parent 36f1e05954
commit c44a5fc995
Signed by: technofab
SSH key fingerprint: SHA256:bV4h88OqS/AxjbPn66uUdvK9JsgIW4tv3vwJQ8tpMqQ

47
ci.nix
View file

@ -1,47 +0,0 @@
{
ci = {
stages = ["check" "build" "deploy"];
jobs = {
"check" = {
stage = "check";
script = [
"nix flake check --impure"
];
};
"docs" = {
stage = "build";
script = [
# sh
''
nix build .#docs:default
mkdir -p public
cp -r result/. public/
''
];
artifacts.paths = ["public"];
};
"pages" = {
nix.enable = false;
image = "alpine:latest";
stage = "deploy";
script = ["true"];
artifacts.paths = ["public"];
rules = [
{
"if" = "$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH";
}
];
};
"upload" = {
stage = "deploy";
rules = [
{"if" = ''$CI_COMMIT_REF_NAME == "main"'';}
];
variables.AUTH_HEADER = "JOB-TOKEN: \${CI_JOB_TOKEN}";
script = [
"nix run .#upload --impure"
];
};
};
};
}