~damien/infrastructure

ref: b481ba41c3bbdf8d4f9c0393f87b495160adc414 infrastructure/jobs/hubot.nomad -rw-r--r-- 790 bytes
b481ba41 — Damien Radtke Suppress cluster env output if non-interactive 7 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
job "hubot" {
	region = "us"

	datacenters = ["us-central"]
	type = "service"

	group "hubots" {
		count = 1

		task "hubot" {
			driver = "raw_exec"
			config {
				command = "bash"
				args = [
					"-c",
					"cd local && exec node_modules/hubot/bin/hubot --adapter slack --name carl",
				]
			}

			user = "nobody"

			env {
				PATH = "node_modules/coffeescript/bin:/usr/bin"

				HUBOT_LOG_LEVEL = "debug"
				HUBOT_SLACK_TOKEN = "${HUBOT_SLACK_TOKEN}"
				HUBOT_GOOGLE_CSE_ID = "${HUBOT_GOOGLE_CSE_ID}"
				HUBOT_GOOGLE_CSE_KEY = "${HUBOT_GOOGLE_CSE_KEY}"
			}

			artifact {
				source = "s3::http://${MINIO_HOST}:9000/artifacts/hubot/hubot.tar.gz"
				options {
					aws_access_key_id = "${MINIO_ACCESS_KEY}"
					aws_access_key_secret = "${MINIO_SECRET_KEY}"
				}
			}
		}
	}
}