Commit graph

71 commits

Author SHA1 Message Date
060d8fad47 chore(module): slim down pipeline yaml generation even more 2025-02-28 12:53:17 +01:00
7a40a68a10 chore(template): skip checking if pipeline exists, just fail if not 2025-02-28 11:54:41 +01:00
36c4fc0fd6 fix(module): prevent parameter expansion when generating pipeline config 2025-02-27 11:19:50 +01:00
fa6c098e02 chore: improve nix-ci:build build time by using only builtins.toJSON
removes dependency on remarshal, pkgs.formats.json uses jq to pretty
print so we just use builtins.toJSON directly
2025-02-27 10:52:47 +01:00
85431f78aa chore: improve "default" handling & caching
add new env variables to configure which CI source gets mapped to default
add logic to check if pipeline exists in flake, else build "default"
2025-02-22 21:57:25 +01:00
55f90b4261 fix(ci): update artifact name in trigger job aswell 2025-02-21 22:53:00 +00:00
ebc70d5c18 fix(ci): fix artifact path 2025-02-21 21:26:28 +00:00
244142274d fix(ci): build correct package and hopefully handle cache issues 2025-02-21 18:52:55 +01:00
7569fcd086 fix(ci): work around gitlab's variable substitution limitations 2025-02-21 18:24:23 +01:00
b4071d4171 fix(ci): image seems quite important ngl 2025-02-21 16:36:50 +01:00
9d28984261 fix(ci): install buildah in the correct job 2025-02-21 16:21:11 +01:00
b0d24f753c fix(image): fix digest being different for every arch aswell 2025-02-21 16:04:59 +01:00
786abd917c fix: use new format of specifying version 2025-02-21 12:34:30 +01:00
586fb88b9d feat(v2): initial v2 implementation
add multi-arch (arm & x64) image
add multiple pipelines (ci now creates the "default" pipeline as a shorthand)
simplify devenv flake input
merge all cache options together, now $NIX_CI_CACHE_STRATEGY decides how the cache works
setup_nix_ci and finalize_nix_ci are now flake packages and work standalone
the specific image is not needed anymore, any image with the right dependencies works
runner cache is not the default anymore (because it sucked most of the time)
the pipeline is selected by $NIX_CI_PIPELINE_NAME or if empty by $CI_PIPELINE_SOURCE,
so for the old behaviour $NIX_CI_PIPELINE_NAME=default is needed, future
work will be needed to handle this more nicely
2025-02-21 12:24:54 +01:00
016e6c9dc7
chore!: rename NIX_CI_SKIP_CACHE → NIX_CI_FORCE_BUILD
closes #16
2025-02-15 21:35:36 +01:00
1101989255 fix(ci-component): honor NIX_CI_DISABLE_CACHE correctly 2024-11-30 17:57:31 +01:00
553b829af0 chore(README): bump component version 2024-11-30 15:13:22 +01:00
f229219a26 Merge branch 'chore/use-legacy-packages' into 'main'
chore(module): add packages to legacyPackages instead

Closes #12

See merge request TECHNOFAB/nix-gitlab-ci!7
2024-11-30 14:11:36 +00:00
012efc7aad Merge branch 'chore/update-flake-and-switch-attic' into 'main'
chore: update flake inputs and use attic-client from nixpkgs

Closes #15

See merge request TECHNOFAB/nix-gitlab-ci!9
2024-11-27 14:41:01 +00:00
a9075917cc Merge branch 'chore/nix-copy-from-stdin' into 'main'
chore(image): pass all store paths at once via stdin to nix copy

See merge request TECHNOFAB/nix-gitlab-ci!8
2024-11-27 13:15:50 +00:00
90a4079200 chore(image): pass all store paths at once via stdin to nix copy 2024-11-27 13:15:50 +00:00
026a7549df chore: update flake inputs and use attic-client from nixpkgs 2024-11-26 20:22:11 +01:00
a85c4e49fe chore: add additional NIX_CONFIG var & reformat
closes #11
2024-11-26 14:12:33 +01:00
856924acdf chore(module): add packages to legacyPackages instead 2024-11-26 13:31:04 +01:00
50f0184a7b chore(LICENSE): use markdown for better readability
[skip ci]
2024-10-30 16:11:19 +00:00
691a0aac79 chore: add LICENSE
[skip ci]
2024-10-30 16:10:18 +00:00
25e5b44a6d feat(module): improve ability to run jobs locally
adds the correct PATH and environment variables to run it locally
similar to how it works in CI. Also split up the before_script, script
and after_script with simple echo's inbetween for easier debugging
2024-10-13 18:34:07 +02:00
532fb8002c fix(module): append "finalize_nix_ci" to after_script, not prepend 2024-10-13 18:32:47 +02:00
81b497d976 chore(README): bump component version 2024-10-13 16:35:14 +02:00
67d75bd167 docs(README): document running jobs locally
[skip ci]
2024-10-13 15:50:18 +02:00
a47ec8cbeb chore(CI): use image built in parent pipeline for dogfooding here aswell
remove retries
2024-10-08 12:33:31 +02:00
546eea3006 Merge branch 'ci/improve-dogfood' into 'main'
ci: improve dogfooding by using the CI built images directly

See merge request TECHNOFAB/nix-gitlab-ci!6
2024-10-07 16:59:30 +00:00
a22258583d ci: improve dogfooding by using the CI built images directly 2024-10-07 16:59:30 +00:00
d04325807c Merge branch 'fix/nix-copy-verbosity' into 'main'
fix(basic-image): append ^* to .drv entries to prevent warnings

Closes #5

See merge request TECHNOFAB/nix-gitlab-ci!5
2024-10-07 12:32:24 +00:00
ec279ae31e fix(basic-image): append ^* to .drv entries to prevent warnings
instead print a "." without newline to be able to see progress
2024-10-06 19:19:33 +02:00
28072631e7 chore(README): bump component version 2024-10-02 21:40:26 +02:00
fdb6193ef1 fix(utils): migrate utils to the new syntax aswell 2024-10-02 18:26:14 +02:00
6448bf5916 chore(README): bump component version 2024-09-16 09:41:08 +00:00
0f62d5e822 fix: allow jobs to omit the "nix" option 2024-09-16 09:31:35 +00:00
854dfb6a90 chore(README): bump component version
[skip ci]
2024-09-13 18:44:37 +00:00
edaf08205b Merge branch 'feat/improve-caching' into 'main'
feat: add support for Gitlab CI cache

Closes #2

See merge request TECHNOFAB/nix-gitlab-ci!4
2024-09-13 18:43:56 +00:00
78e6c5e278 feat: improve caching 2024-09-13 18:43:56 +00:00
39748cb380 chore(README): bump component version
[skip ci]
2024-09-13 17:55:05 +00:00
a2a7f7c4ed chore(CI): build image on tag & tag images with short sha instead of date 2024-09-13 17:54:24 +02:00
97f49cbdf6 chore: add treefmt and format files 2024-09-13 17:22:38 +02:00
f30adf88d3 Merge branch 'feat/cicd-component' into 'main'
feat: add CI Component template

See merge request TECHNOFAB/nix-gitlab-ci!3
2024-09-11 15:03:43 +00:00
4e039a6b92 feat: add CI Component template 2024-09-11 15:03:42 +00:00
533bd2eef5 feat: add assertion to check if a job's stage exists 2024-09-10 13:07:48 +00:00
e3b35ec8ae feat: add support for nix store paths in variables
by exporting them at runtime and removing them from the pipeline
definition itself
closes #3
2024-09-10 12:46:13 +00:00
ed80957884 docs(README): adjust input url for new lib flake 2024-07-28 14:53:15 +02:00