mirror of
https://github.com/harivansh-afk/agentikube.git
synced 2026-04-15 07:04:44 +00:00
build
This commit is contained in:
parent
011170671c
commit
6d7716a0fe
3 changed files with 155 additions and 1 deletions
34
README.md
34
README.md
|
|
@ -4,7 +4,9 @@
|
|||
[](https://github.com/harivansh-afk/agentikube/releases)
|
||||
[](https://github.com/harivansh-afk/agentikube)
|
||||
[](https://github.com/harivansh-afk/agentikube/blob/main/go.mod)
|
||||
[](https://github.com/harivansh-afk/agentikube)
|
||||
[](https://github.com/harivansh-afk/agentikube)
|
||||
[](https://github.com/harivansh-afk/agentikube/actions/workflows/ci.yml)
|
||||
[](https://github.com/harivansh-afk/agentikube/actions/workflows/release.yml)
|
||||
|
||||
This repo is a small Go CLI for running isolated agent sandboxes on Kubernetes.
|
||||
|
||||
|
|
@ -132,6 +134,36 @@ agentikube list
|
|||
agentikube ssh demo
|
||||
```
|
||||
|
||||
## Test CLI Locally
|
||||
|
||||
Use this exact flow to verify the CLI on your machine:
|
||||
|
||||
```bash
|
||||
# 1) Build + tests
|
||||
mkdir -p .cache/go-build .cache/go-mod
|
||||
GOCACHE=$(pwd)/.cache/go-build GOMODCACHE=$(pwd)/.cache/go-mod go build ./...
|
||||
GOCACHE=$(pwd)/.cache/go-build GOMODCACHE=$(pwd)/.cache/go-mod go test ./...
|
||||
|
||||
# 2) Root help + command help
|
||||
GOCACHE=$(pwd)/.cache/go-build GOMODCACHE=$(pwd)/.cache/go-mod go run ./cmd/agentikube --help
|
||||
for c in init up create list ssh down destroy status; do
|
||||
GOCACHE=$(pwd)/.cache/go-build GOMODCACHE=$(pwd)/.cache/go-mod go run ./cmd/agentikube "$c" --help >/dev/null
|
||||
done
|
||||
|
||||
# 3) Manifest generation smoke test
|
||||
./agentikube up --dry-run --config agentikube.example.yaml
|
||||
```
|
||||
|
||||
If those pass, the CLI wiring + config + templating path is working locally.
|
||||
|
||||
## CI And Auto Release
|
||||
|
||||
This repo now has two GitHub Actions workflows:
|
||||
- `.github/workflows/ci.yml`
|
||||
Runs `go build ./...` and `go test ./...` on PRs and non-main branch pushes.
|
||||
- `.github/workflows/release.yml`
|
||||
Runs on push to `main`, auto-bumps patch version (`vX.Y.Z`), writes `VERSION`, creates/pushes tag, builds multi-platform binaries, and creates a GitHub Release with artifacts.
|
||||
|
||||
## Notes / Current Limits
|
||||
|
||||
- `storage.type` currently must be `efs`.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue