Skip to content

Upgrade to gitlab-ci 0.8.0

Horizon Bot requested to merge upgrade-to-0.8.0 into master

Summary

Version 0.8.0 with flake validator module and improved API

Breaking Changes

  • Move flake option 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

New Features

  • Flake validator module
    • Creates two CI jobs: flake-lock and flake-show
    • flake-lock: validates flake.lock is up to date
    • flake-show: validates nix flake show succeeds
    • Optional allowImportFromDerivation flag (defaults to false)
    • Configure via flake.enable = true;

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
}

🤖 Generated with Claude Code

Merge request reports