mirror of
https://gitlab.com/TECHNOFAB/nix-gitlab-ci.git
synced 2025-12-12 10:10:06 +01:00
39 lines
965 B
Nix
39 lines
965 B
Nix
{
|
|
outputs = {
|
|
flake-parts,
|
|
systems,
|
|
...
|
|
} @ inputs:
|
|
flake-parts.lib.mkFlake {inherit inputs;} {
|
|
imports = [
|
|
inputs.nix-gitlab-ci.flakeModule
|
|
];
|
|
systems = import systems;
|
|
flake = {};
|
|
perSystem = _: {
|
|
ci = {
|
|
pipelines = {
|
|
"default" = {
|
|
stages = ["example"];
|
|
jobs."example" = {
|
|
stage = "example";
|
|
script = ["echo hello world"];
|
|
};
|
|
};
|
|
"test".jobs."example" = {
|
|
stage = ".pre";
|
|
script = ["echo hello world"];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
|
systems.url = "github:nix-systems/default-linux";
|
|
# NOTE: better pin to a version
|
|
nix-gitlab-ci.url = "gitlab:TECHNOFAB/nix-gitlab-ci?dir=lib";
|
|
};
|
|
}
|