Send Nomad deployment messages to slack in GO Lang
Application can be launched using docker For example inside a Nomad. Don't forget to change Slack stuff.
job "nomad-deploy-notifier" {
datacenters = ["dc1"]
type = "service"
group "nomad-deploy-notifier" {
task "nomad-deploy-notifier" {
driver = "docker"
env {
"SLACK_TOKEN": "SLACK_TOKEN",
"SLACK_CHANNEL":"SLACK_CHANNEL"
}
config {
image = "ghcr.io/allan-nava/Nomad-Deploy-Notifier:latest"
network_mode = "host"
}
}
}
}
Inspired by https://github.com/drewbailey/nomad-deploy-notifier