This commit is contained in:
wizzdom 2023-12-15 23:09:06 +00:00
parent cc23af5889
commit 244f6bc354

View file

@ -38,10 +38,19 @@ job "dcusr" {
image = "ghcr.io/dcu-solar-racing/nextjs-website:main"
ports = ["http"]
auth {
username = {{ key "dcusr/ghcr/username" }}
password = {{ key "dcusr/ghcr/password" }}
username = "${DOCKER_USER}"
password = "${DOCKER_PASS}"
}
}
template {
destination = "secrets/secret.env"
env = true
change_mode = "restart"
data = <<EOH
DOCKER_USER={{ key "dcusr/ghcr/username" }}
DOCKER_PASS={{ key "dcusr/ghcr/password" }}
EOH
}
}
}
}