mirror of
https://gitlab.com/TECHNOFAB/nixlets.git
synced 2025-12-12 01:50:05 +01:00
refactor(flake): update, add treefmt, cleanup and import lib directly
This commit is contained in:
parent
5199b67122
commit
649955cc29
3 changed files with 172 additions and 628 deletions
16
ci.nix
16
ci.nix
|
|
@ -1,22 +1,9 @@
|
|||
{
|
||||
pkgs,
|
||||
inputs',
|
||||
...
|
||||
}: {
|
||||
ci = {
|
||||
stages = ["check" "upload"];
|
||||
default = {
|
||||
retry = {
|
||||
max = 2;
|
||||
when = "runner_system_failure";
|
||||
};
|
||||
};
|
||||
jobs = {
|
||||
"check" = {
|
||||
stage = "check";
|
||||
before_script = [
|
||||
"nix flake prefetch path:lib"
|
||||
];
|
||||
script = [
|
||||
"nix flake check --impure"
|
||||
];
|
||||
|
|
@ -27,9 +14,6 @@
|
|||
{"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