added nats-exec
This commit is contained in:
27
README.md
27
README.md
@@ -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`)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user