https://github.com/gwuah/fly-notification-agent
a tiny agent that runs in your vm
https://github.com/gwuah/fly-notification-agent
Last synced: 2 months ago
JSON representation
a tiny agent that runs in your vm
- Host: GitHub
- URL: https://github.com/gwuah/fly-notification-agent
- Owner: gwuah
- Created: 2023-05-12T16:42:39.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-05-15T20:14:32.000Z (almost 2 years ago)
- Last Synced: 2025-01-11T05:15:44.880Z (4 months ago)
- Language: Go
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.MD
Awesome Lists containing this project
README
# fly-notification-agent
Notify webhooks based on vm state# supported states
- machine_started
- machine_stopped
- oom# payload structure
- type
- data
- machine_id
- app_name
- state
- at# usage
drop this line in your dockerfile
```
curl -L https://fly-notification-agent.fly.dev/install.sh | sh
```add this to your machine config
```
{
"name": "events",
"entrypoint": ["/bin/bash", "-c"],
"cmd": ["~/.fly/fly-notification-agent", "--webhook", "]
}
```# process (for me so i don't forget because i can't do anything right)
it's a bit weird but
- make changes
- GOOS=linux GOARCH=amd64 go build main.go
- git tag v0.0.4
- update public/install.sh to point to new version
- git push origin --tags
- fly deploy