chore(CI): modify cache_files and add ssl ca certs to test job

This commit is contained in:
technofab 2025-09-03 14:29:56 +02:00
parent cf04bf5357
commit a076f0048a
No known key found for this signature in database
3 changed files with 10 additions and 1 deletions

View file

@ -1,10 +1,11 @@
{inputs, ...}: let
inherit (inputs) cilib;
inherit (inputs) pkgs cilib;
in
cilib.mkCI {
config.soonix = {
componentUrl = "$CI_SERVER_FQDN/$CI_PROJECT_PATH/nix-gitlab-ci";
componentVersion = "$CI_COMMIT_SHORT_SHA";
componentInputs.cache_files = ["flake.*" "nix/repo/ci.nix"];
# bootstrapping still needs to be done in the gitlab-ci.yml directly,
# the child pipeline can then use the built images to test them
extraData = {
@ -63,6 +64,10 @@ in
script = [
"nix run .#tests -- --junit=junit.xml"
];
variables = {
"SSL_CERT_FILE" = "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt";
"NIX_SSL_CERT_FILE" = "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt";
};
allow_failure = true;
artifacts = {
when = "always";