Upgrade to gitlab-ci 0.8.0
Summary
Version 0.8.0 with flake validator module and improved API
Breaking Changes
-
Move
flakeoption from top-level to discover module- Remove
gitlab.ci.flake = self; - Add
discover.flake = self;when using discover module - Only discover module needs flake reference for introspection
- Avoids naming conflicts with flake validator module
- Remove
New Features
-
Flake validator module
- Creates two CI jobs:
flake-lockandflake-show -
flake-lock: validates flake.lock is up to date -
flake-show: validatesnix flake showsucceeds - Optional
allowImportFromDerivationflag (defaults to false) - Configure via
flake.enable = true;
- Creates two CI jobs:
Migration Guide
# Before (0.7.0)
gitlab.ci = {
enable = true;
flake = self;
imports = [ inputs.gitlab-ci.modules.gitlab-ci.discover ];
discover.enable = true;
}
# After (0.8.0)
gitlab.ci = {
enable = true;
imports = [
inputs.gitlab-ci.modules.gitlab-ci.discover
inputs.gitlab-ci.modules.gitlab-ci.flake
];
discover = {
enable = true;
flake = self; # Moved here
};
flake.enable = true; # New validator module
}