mirror of
https://gitlab.com/TECHNOFAB/nixlets.git
synced 2026-02-02 03:05:09 +01:00
chore: remove old ci.nix
This commit is contained in:
parent
36f1e05954
commit
c44a5fc995
1 changed files with 0 additions and 47 deletions
47
ci.nix
47
ci.nix
|
|
@ -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"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue