Skip to content

Commit 1aa4ae7

Browse files
committed
refactor: remove local pre-commit config, use centralized config and tfroot-runner
1 parent a8d2d8f commit 1aa4ae7

File tree

3 files changed

+32
-44
lines changed

3 files changed

+32
-44
lines changed

.github/workflows/opentofu.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
uses: makeitworkcloud/shared-workflows/.github/workflows/opentofu.yml@main
1818
with:
1919
runs-on: arc-dind
20-
container: image-registry.openshift-image-registry.svc:5000/public-registry/runner:latest
20+
container: image-registry.openshift-image-registry.svc:5000/public-registry/tfroot-runner:latest
2121
setup-ssh: true
2222
secrets:
2323
SOPS_AGE_KEY: ${{ secrets.SOPS_AGE_KEY }}

.pre-commit-config.yaml

Lines changed: 0 additions & 43 deletions
This file was deleted.

AGENTS.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Agent Instructions
2+
3+
## Repository Purpose
4+
5+
OpenTofu root module for libvirt/KVM infrastructure.
6+
7+
## Push Access
8+
9+
Agents are authorized to push directly to `main` in this repository.
10+
11+
## Pre-commit Configuration
12+
13+
Pre-commit configuration is **centralized** in `makeitworkcloud/images/tfroot-runner/pre-commit-config.yaml`. The CI workflow fetches this config at runtime.
14+
15+
**Do not** create or modify `.pre-commit-config.yaml` in this repository.
16+
17+
For local development, run:
18+
```bash
19+
curl -sSL -o .pre-commit-config.yaml \
20+
https://raw.githubusercontent.com/makeitworkcloud/images/main/tfroot-runner/pre-commit-config.yaml
21+
make test
22+
```
23+
24+
## Special Configuration
25+
26+
This repo uses `arc-dind` runner with an internal OpenShift registry image (`tfroot-runner`) because it requires SSH access to libvirt hosts.
27+
28+
## Related Repositories
29+
30+
- `images` - Contains tfroot-runner image and canonical pre-commit config
31+
- `shared-workflows` - Contains the reusable OpenTofu workflow

0 commit comments

Comments
 (0)