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
6bde7a5dfa
Merge branch 'feat/split-flake' into 'main'
...
feat: split lib and utils into separate flake
See merge request TECHNOFAB/nix-gitlab-ci!2
2024-07-28 12:51:14 +00:00
f361878e13
feat: split lib and utils into separate flake
2024-07-28 12:51:14 +00:00
c272bfd812
fix: allow rules to contain attrs
2024-03-23 21:09:05 +01:00
d26ead5f0b
fix: typo
2024-03-23 21:07:26 +01:00
b1117dd620
fix(module): fix before_script not getting appended if it exists
...
[skip ci]
2024-03-17 21:10:10 +01:00
f460960ce6
chore(utils): fix before_script getting overwritten and add collapsible sections
2024-03-17 18:26:45 +01:00
93baeca411
chore: update gitlab-ci.yml and only load job deps if name was passed to setup_nix_ci
2024-03-17 18:16:34 +01:00
12e55ad0b7
chore: add grep to images
2024-03-17 16:53:03 +01:00
85e18c5766
Merge branch 'cache' into 'main'
...
feat: caching support
See merge request TECHNOFAB/nix-gitlab-ci!1
2024-03-17 15:44:22 +00:00
3a05d7a128
feat: caching support
2024-03-17 15:44:22 +00:00
426d89702a
fix(utils): create ~/.ssh/known_hosts if it does not exist
2024-02-03 16:18:02 +01:00