generated from iotaledger/template
-
Notifications
You must be signed in to change notification settings - Fork 6
/
waypoint.hcl
45 lines (40 loc) · 1.23 KB
/
waypoint.hcl
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
# The name of your project. A project typically maps 1:1 to a VCS repository.
# This name must be unique for your Waypoint server. If you're running in
# local mode, this must be unique to your machine.
project = "isc"
# Labels can be specified for organizational purposes.
labels = { "team" = "isc" }
variable "ghcr" {
type = object({
username = string
password = string
server_address = string
})
}
app "evm-toolkit" {
build {
use "docker" {
disable_entrypoint = true
buildkit = true
dockerfile = "./Dockerfile"
}
registry {
use "docker" {
image = "ghcr.io/luke-thorne/evm_toolkit_frontend"
tag = gitrefpretty()
encoded_auth = base64encode(jsonencode(var.ghcr))
}
}
}
deploy {
use "nomad-jobspec" {
// Templated to perhaps bring in the artifact from a previous
// build/registry, entrypoint env vars, etc.
jobspec = templatefile("${path.app}/wasp-evm-toolkit.nomad.tpl", {
artifact = artifact
auth = var.ghcr
workspace = workspace.name
})
}
}
}