From 31f93e0c1b7d033760ce021bb9f5529ba33e1455 Mon Sep 17 00:00:00 2001 From: Ayden <77453154+aydenjahola@users.noreply.github.com> Date: Wed, 3 Apr 2024 15:21:01 +0100 Subject: [PATCH] add brickbot2 job (#37) Co-authored-by: wizzdom --- jobs/services/brickbot.hcl | 54 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 jobs/services/brickbot.hcl diff --git a/jobs/services/brickbot.hcl b/jobs/services/brickbot.hcl new file mode 100644 index 0000000..1fcb3b8 --- /dev/null +++ b/jobs/services/brickbot.hcl @@ -0,0 +1,54 @@ +job "brickbot2" { + datacenters = ["aperture"] + + type = "service" + + group "brickbot2" { + count = 1 + + task "brickbot2" { + driver = "docker" + + config { + image = "ghcr.io/redbrick/brickbot2:latest" + auth { + username = "${DOCKER_USER}" + password = "${DOCKER_PASS}" + } + volumes = [ + "local/ldap.secret:/etc/ldap.secret:ro", + ] + } + + template { + destination = "local/ldap.secret" + data = "{{ key \"api/ldap/secret\" }}" # this is necessary as the secret has no EOF + } + + template { + destination = "local/.env" + env = true + change_mode = "restart" + data = <