Merge pull request #18 from redbrick/add-ayden-discord-bot
add ayden discord bot
This commit is contained in:
commit
431e086df8
1 changed files with 36 additions and 0 deletions
36
jobs/user-projects/general/ayden-discord-bot.hcl
Normal file
36
jobs/user-projects/general/ayden-discord-bot.hcl
Normal file
|
@ -0,0 +1,36 @@
|
|||
job "ayden-discord-bot" {
|
||||
datacenters = ["aperture"]
|
||||
type = "service"
|
||||
|
||||
group "discordbotgoml" {
|
||||
count = 1
|
||||
|
||||
task "discordbotgoml" {
|
||||
driver = "docker"
|
||||
|
||||
config {
|
||||
image = "ghcr.io/aydenjahola/discordbotgoml:main"
|
||||
auth {
|
||||
username = "${DOCKER_USER}"
|
||||
password = "${DOCKER_PASS}"
|
||||
}
|
||||
}
|
||||
|
||||
resources {
|
||||
cpu = 500
|
||||
memory = 256
|
||||
}
|
||||
|
||||
template {
|
||||
data = <<EOH
|
||||
DISCORD_TOKEN={{ key "user-projects/ayden/gomlbot/discord/token" }}
|
||||
DOCKER_USER={{ key "user-projects/ayden/ghcr/username" }}
|
||||
DOCKER_PASS={{ key "user-projects/ayden/ghcr/password" }}
|
||||
DEBUG=false
|
||||
EOH
|
||||
destination = "local/.env"
|
||||
env = true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue