-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproject.nomad
45 lines (37 loc) · 962 Bytes
/
project.nomad
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
job "adrift" {
datacenters = ["dc1"]
group "adrift" {
count = 1
network {
port "http" {
to = 80
}
}
update {
canary = 1
max_parallel = 3
auto_revert = true
auto_promote = true
}
service {
name = "adrift"
port = "http"
provider = "nomad"
tags = [
"traefik.enable=true",
"traefik.http.routers.adrift.rule=Host(`adrift-example.com`)",
]
}
task "adrift" {
driver = "docker"
config {
image = "${CI_REGISTRY}/hmerritt/adrift:${CI_COMMIT_TAG}"
ports = ["http"]
auth {
username = "${CI_REGISTRY_USER}"
password = "${PERSONAL_ACCESS_TOKEN}"
}
}
}
}
}