mirror of
https://gitlab.com/TECHNOFAB/nixlets.git
synced 2025-12-12 10:00:12 +01:00
23 lines
458 B
Nix
23 lines
458 B
Nix
{
|
|
ci = {
|
|
stages = ["check" "upload"];
|
|
jobs = {
|
|
"check" = {
|
|
stage = "check";
|
|
script = [
|
|
"nix flake check --impure"
|
|
];
|
|
};
|
|
"upload" = {
|
|
stage = "upload";
|
|
rules = [
|
|
{"if" = ''$CI_COMMIT_REF_NAME == "main"'';}
|
|
];
|
|
variables.AUTH_HEADER = "JOB-TOKEN: \${CI_JOB_TOKEN}";
|
|
script = [
|
|
"nix run .#upload --impure"
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|