Adopt native GitLab CI and package publication

The Forgejo import retains Git history but does not run its Actions workflow in GitLab. This adds a native GitLab pipeline for the imported Token TV project, backed by the project-scoped runner now online for this project.

The pipeline checks formatting and the flake/package/module, publishes eight module guard cases as a JUnit report, and retains package closure and flake metadata for 14 days. Workflow rules avoid duplicate push/MR pipelines. A version tag exposes a manual job to publish a Nix runtime closure, checksum and store path to the generic package registry using CI_JOB_TOKEN. These are unsigned transport archives; signed binary-cache provisioning is outside this change.

The pinned Nix image runs in non-privileged Docker jobs with one concurrent job and explicit resource limits. The runner manager's Docker socket is not mounted into jobs. A project-scoped file binary cache accelerates subsequent jobs. The MR template records validation and mutable clock recovery evidence.

Validation:

  • Local nix flake check --print-build-logs passed: 75 package tests and eight generated guard cases.
  • GitLab CI lint passed without errors or warnings.
  • The exact check script passed in the pinned resource-limited container on the runner host, including JUnit/metadata generation and cache export.
  • Release export/upload passed against a local receiver; SHA-256 and compressed archive integrity passed, and 55 paths imported successfully into a disposable store with explicit local trust. No real GitLab package/release was published.
  • Bash syntax, Nix formatting and whitespace checks passed.

Live GitLab MR pipeline #2 passed for head c7bd172c. GitLab ingested all eight passing module tests and retained archive/JUnit artifacts. The legacy Forgejo workflow was removed from this branch and Actions disabled on the original Token TV repository. Native aarch64 testing and physical clock behavior are not covered here. Forgejo Actions is disabled on the original Token TV repository, while its source remains available, and no fleet service is redeployed. The separately prepared NixOS URL-only cutover preserves the original source revision/hash and should follow a green GitLab pipeline.

Tracking: https://git.nimmog.uk/nimmo/nixos-config/issues/347

Edited by Graeme Nimmo

Merge request reports

Loading
Loading