feat: Add Nomad deployment configuration and update email handling
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 19s
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 19s
This commit is contained in:
26
finance-app.nomad
Normal file
26
finance-app.nomad
Normal file
@@ -0,0 +1,26 @@
|
||||
job "finance-app" {
|
||||
datacenters = ["dc1"]
|
||||
type = "service"
|
||||
|
||||
variable "container_version" {
|
||||
default = "latest"
|
||||
}
|
||||
|
||||
group "finance-app" {
|
||||
count = 1
|
||||
|
||||
task "finance-app" {
|
||||
driver = "docker"
|
||||
|
||||
config {
|
||||
image = "gitea.service.dc1.fbleagh.duckdns.org/sstent/DailyEmail-Finance:${var.container_version}"
|
||||
}
|
||||
|
||||
env {
|
||||
GMAIL_USER = "stuart.stent@gmail.com"
|
||||
GMAIL_APP_PASSWORD = "qacyyoxcddwbxyfw"
|
||||
RECIPIENT_EMAIL = "stuart.stent@gmail.com,sdoltonz@gmail.com"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user