added nats-exec

This commit is contained in:
2026-02-21 12:56:58 +01:00
parent 7e6e18e9fa
commit 78d1e44add
5 changed files with 176 additions and 1 deletions

View File

@@ -1,2 +1,29 @@
# nats-upload
Tooling for uploading and executing binaries via NATS Object Store.
## nats-upload
A GitHub Action to upload binaries to a NATS Object Store for self-update.
## nats-exec
A tool to download and execute the latest version of a binary from NATS Object Store.
### Usage
```bash
nats-exec <binary-name> [args...]
```
Example:
```bash
nats-exec mybinary version
```
### Environment Variables
- `NATS_URL`: NATS server URL (default: `nats://localhost:4222`)
- `NATS_BUCKET`: Object store bucket name (default: `binaries`)
- `NATS_CACHE_DIR`: Local cache directory (default: `/tmp/nats-exec-cache`)