Skip to content

feat: ephemeral deploy, destroy, env list commands#3

Merged
Taure merged 3 commits intomainfrom
feat/ephemeral-deploy
Apr 14, 2026
Merged

feat: ephemeral deploy, destroy, env list commands#3
Taure merged 3 commits intomainfrom
feat/ephemeral-deploy

Conversation

@Taure
Copy link
Copy Markdown
Contributor

@Taure Taure commented Apr 14, 2026

Summary

Adds CLI support for the ephemeral environment lifecycle:

  • `asobi deploy --ephemeral [--name N] [--json]` — create a fresh ephemeral env (1h TTL) and return env_id + api_key
  • `asobi destroy <env_id>` — delete env and revoke its keys (idempotent)
  • `asobi env list [--ephemeral] [--json]` — list envs for the current game

CI integration pattern

```bash
DEPLOY=$(asobi deploy --ephemeral --json)
ENV_ID=$(echo "$DEPLOY" | jq -r .env_id)
ASOBI_API_KEY=$(echo "$DEPLOY" | jq -r .api_key)

trap "asobi destroy $ENV_ID" EXIT

... run tests ...

```

The 1-hour server-side TTL is the safety net.

Server-side companion

Requires widgrensit/asobi_saas#22 (ephemeral env lifecycle + reaper).

Also included

  • Pre-existing client.go fix: 5min timeout + empty 2xx body handling
  • `asobi` build artefact added to .gitignore

Test plan

  • go test passes (auth package)
  • go vet passes
  • Manual end-to-end after asobi_saas#22 merges

Taure added 3 commits April 14, 2026 09:03
Adds CLI support for ephemeral environment lifecycle:

- asobi deploy --ephemeral [--name N] [--json] — create fresh env (1h TTL)
- asobi destroy <env_id> — delete env and revoke its keys (idempotent)
- asobi env list [--ephemeral] [--json] — list envs for current game

CI integration pattern (in README): wrap deploy with trap-based destroy
so envs are cleaned up on test completion. Server-side reaper is the
safety net if trap doesn't fire.

Server-side: requires asobi_saas#22.

Also: add 'asobi' build artefact to .gitignore.
Pre-existing local change. Larger Lua bundles can take longer than 30s
to compile; bump timeout to 5min. Some engine versions return empty
body on success — treat 2xx empty body as success.
@Taure Taure merged commit aaa114f into main Apr 14, 2026
1 check passed
@Taure Taure deleted the feat/ephemeral-deploy branch April 14, 2026 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant