-
Notifications
You must be signed in to change notification settings - Fork 0
/
waypoint.hcl
118 lines (96 loc) · 2.08 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
project = "spoty"
variable "docker_username" {
type = string
}
variable "docker_password" {
type = string
}
runner {
enabled = true
profile = "kubernetes"
data_source "git" {
url = "https://github.com/mgjules/spoty.git"
ref = "main"
}
poll {
enabled = true
}
}
app "api" {
labels = {
"lang" = "go"
}
config {
env = {
SPOTIFY_CLIENT_ID = dynamic("kubernetes", {
name = "spoty-creds"
key = "spotifyClientID"
secret = true
})
SPOTIFY_CLIENT_SECRET = dynamic("kubernetes", {
name = "spoty-creds"
key = "spotifyClientSecret"
secret = true
})
SPOTIFY_REDIRECT_URI = dynamic("kubernetes", {
name = "spoty-config"
key = "spotifyRedirectUri"
})
SERVICE_NAME = dynamic("kubernetes", {
name = "spoty-config"
key = "serviceName"
})
PROD = dynamic("kubernetes", {
name = "spoty-config"
key = "prod"
})
HTTP_SERVER_HOST = dynamic("kubernetes", {
name = "spoty-config"
key = "httpServerHost"
})
HTTP_SERVER_PORT = dynamic("kubernetes", {
name = "spoty-config"
key = "httpServerPort"
})
CACHE_MAX_KEYS = dynamic("kubernetes", {
name = "spoty-config"
key = "cacheMaxKeys"
})
CACHE_MAX_COST = dynamic("kubernetes", {
name = "spoty-config"
key = "cacheMaxCost"
})
JAEGER_ENDPOINT = dynamic("kubernetes", {
name = "spoty-config"
key = "jaegerEndpoint"
})
AMQP_URI = dynamic("kubernetes", {
name = "spoty-config"
key = "amqpUri"
})
}
}
build {
use "docker" {
buildkit = false
}
registry {
use "docker" {
image = "julesmike/spoty"
tag = gitrefpretty()
username = var.docker_username
password = var.docker_password
}
}
}
deploy {
use "kubernetes" {
service_port = 13337
}
}
release {
use "kubernetes" {
port = 8080
}
}
}