feat: GitHub Action for CI/CD hosts file setup
@cjimti is already working on this.
Since Feb 8, 2026.
Assessment
This issue has not been assessed yet.
Description
Problem
CI jobs that test against named services need hosts file entries. Most projects handle this with a raw echo >> /etc/hosts step. Cleanup on failure usually doesn't happen.
Proposed solution
A GitHub Action in a separate repo (txn2/txeh-action) that wraps the txeh CLI. It adds entries in a setup step and removes them in a post step, so cleanup happens even if the job fails.
- uses: txn2/txeh-action@v1
with:
entries: |
10.0.0.1 db.test.local
10.0.0.2 api.test.local
Needs its own repo so GitHub Actions versioning (@v1 tags) works independently from the library's release tags.
Should work on Ubuntu, macOS, and Windows runners.
Alternatives considered
The echo >> /etc/hosts approach works fine for simple cases. The value here is mostly cleanup and cross-platform support, which may not justify a separate repo until profiles (#44) make setup/teardown more useful.
- Dominant language
- Go
- Stars
- 342
- Forks
- 42
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from txn2/txeh
-
feat: Profile management (named groups with enable/disable)May be free again @cjimti claimed this 271 days ago, and no pull request is open. Openenhancement
Similar issues
-
agent-butler-finding bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
jordansmall/spindrift#6414 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Icinga/icinga-kubernetes#294 ·
Maintainers usually reply within 4 days
-
Cluster details: the Control Plane version field has a different border color than its icon boxOpenkind/design sig/ui
Difficulty 1/5 Under an hour Newbie friendliness 92/100
kubermatic/dashboard#8449 ·
Maintainers usually reply within 1 day
-
needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
cli/cli#14962 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
model-drift
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Maintainers usually reply within 1 day