Split CI pipeline into modular files #68
No reviewers
Labels
No labels
IaC
admin
agent-containers
automation
blockchain
cleanup
data
documentation
hardware
hotfix
infrastructure
maintenance
metrics
ml
monitoring
networking
resilience
security
tailscale
trading
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
midwitmoneymgmt/m3-infra!68
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "split-ci-pipeline"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Breaks the monolithic
.gitlab-ci.ymlinto focused files underci/.New structure
.gitlab-ci.ymlci/templates.yml.tailscale,.tofu,.incus+ new.test-containerand.deploy-containertemplatesci/validate.ymlvalidate+ alltest-*jobsci/terraform.ymlplan,apply,rebuildci/deploy.ymldeploy-*jobsDeduplication
Introduces two new templates that eliminate repeated boilerplate:
.test-container— generic NixOS test-build. Each test job just setsCONTAINER_NAMEandrules.changes.deploy-container— generic NixOS deploy (push config, update channels, rebuild switch). Custom jobs (monitoring, claude-code) extend it with!referenceand add their extra stepsNo behavior change
All jobs, rules, stages, and triggers are identical to the previous monolithic file. The only change is organization and reduced repetition.
Adding a new container
With the templates, adding a new container's CI is now 20 lines instead of 60:
assigned to @AlexCaswen
approved this merge request
mentioned in commit
c3709c0b63mentioned in merge request !69