Monitoring for new image updates in Google Container Registry.
Can be use as a standalone app or import as a library.
You can write your own subscriber that implements Subscriber
interface to deal with new events.
type Event struct {
Action string `json:"action"`
Tag string `json:"tag"`
Digest string `json:"digest"`
}
type Subscriber interface {
Name() string
Init() error
Cleanup() error
OnReceive(event Event) error
}
- Run a shell script
- Send message to Slack
- Send message to Mattermost
- Pull image and update docker container
- ...