~damien/infrastructure

ref: b481ba41c3bbdf8d4f9c0393f87b495160adc414 infrastructure/jobs/radtkefamily.nomad -rw-r--r-- 1.2 KiB
b481ba41 — Damien Radtke Suppress cluster env output if non-interactive 8 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
job "radtkefamily" {
	region = "us"

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

	group "server" {
		count = 1

		task "server" {
			driver = "exec"
			config {
				command = "/bin/sh"
				args = [
					"-c",
					"cd local/site && exec ../hugo server --baseURL=https://radtke.family/ --appendPort=false --watch=false --bind=0.0.0.0 --port=${NOMAD_PORT_http}",
				]
			}

			service {
				name = "${JOB}-${TASK}"
				port = "http"

				check {
				      type = "http"
				      protocol = "http"
				      port = "http"
				      interval = "10s"
				      timeout = "2s"
				      path = "/"
				}

				tags = ["urlprefix-radtke.family/"]
			}


			resources {
				cpu = 20  # MHz, the minimum value
				memory = 50  # MB
				network {
					port "http" {}
				}
			}

			artifact {
				source = "git::https://git.sr.ht/~damien/radtke-family-site"
				destination = "local/site/"
				options {
					ref = "ad29359bccf9de4f9058ffc9e4aed8b276ea2f76"
				}
			}

			artifact {
				source = "https://github.com/gohugoio/hugo/releases/download/v0.58.2/hugo_extended_0.58.2_Linux-64bit.tar.gz"
				options {
					checksum = "sha256:7ac65f7ee6dd30f6c3667e0c2fa22a0034c0945e0614447c6b2b4d7795d192d2"
				}
			}
		}
	}
}