mirror of
https://gitlab.com/TECHNOFAB/nixlets.git
synced 2025-12-12 01:50:05 +01:00
feat: rewrite how nixlets work
This commit is contained in:
parent
ba81fba6b2
commit
0cde19e51f
36 changed files with 494 additions and 125 deletions
18
ci.nix
18
ci.nix
|
|
@ -4,7 +4,7 @@
|
|||
...
|
||||
}: {
|
||||
ci = {
|
||||
stages = ["check"];
|
||||
stages = ["check" "upload"];
|
||||
default = {
|
||||
retry = {
|
||||
max = 2;
|
||||
|
|
@ -14,10 +14,26 @@
|
|||
jobs = {
|
||||
"check" = {
|
||||
stage = "check";
|
||||
before_script = [
|
||||
"nix flake prefetch path:lib"
|
||||
];
|
||||
script = [
|
||||
"nix flake check --impure"
|
||||
];
|
||||
};
|
||||
"upload" = {
|
||||
stage = "upload";
|
||||
rules = [
|
||||
{"if" = ''$CI_COMMIT_REF_NAME == "main"'';}
|
||||
];
|
||||
variables.AUTH_HEADER = "JOB-TOKEN: \${CI_JOB_TOKEN}";
|
||||
before_script = [
|
||||
"nix flake prefetch path:lib"
|
||||
];
|
||||
script = [
|
||||
"nix run .#upload --impure"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue