Alerta Notifications
Prerequisites
- setup an Alerta instance
- setup an Smtp server
- setup a slack subscription
Build and Run
to run the project locally, adjust config/config.yml
to your local setup and execute
go build
./notifications config/config.yml
Release
Find the latest tag:
git fetch --tags
git describe --tags $(git rev-list --tags --max-count=1)
Create a new tag and publish docker image to Github packages
./release.sh <release version> <github_username> <github_packages_token>
Docker
Build an image
docker build -t "guanacoio/notifications:latest" .
Run Compose file or run container
cd docker
docker-compose up
or
docker run -td guanacoio/notifications:latest