add nova discord bot task

This commit is contained in:
Ayden Jahola 2024-09-17 12:28:10 +01:00
parent 6ecd7df30d
commit 2aaad703ee
No known key found for this signature in database
GPG key ID: 71DD90AE4AE92742

View file

@ -89,5 +89,23 @@ job "nova-timetable" {
ports = ["db"]
}
}
task "timetablebot" {
driver = "docker"
config {
image = "ghcr.io/novanai/timetable-sync-bot:latest"
}
template {
data = <<EOH
BOT_TOKEN={{ key "user-projects/nova/timetablebot/token" }}
REDIS_ADDRESS={{ env "NOMAD_ADDR_db" }}
EOH
destination = "local/.env"
env = true
}
}
}
}