-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-bake.hcl
128 lines (121 loc) · 3.71 KB
/
docker-bake.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
119
120
121
122
123
124
125
126
127
128
variable VERSION {
default = "0.1-beta"
}
variable IS_LATEST {
default = true
}
variable REF {
default = ""
}
group default {
targets = [
"authenticator-app",
"oauth2",
"webauthn",
"passwords",
]
}
target authenticator-app {
dockerfile = "Dockerfile"
context = "authenticator-app"
labels = {
"org.opencontainers.image.name" = "modern-auth/authenticator-app"
"org.opencontainers.image.description" = "App containing the frontend, email and profile service of ModernAuth"
"org.opencontainers.image.url" = "https://github.com/Untanky/modern-auth"
"org.opencontainers.image.source" = "https://github.com/Untanky/modern-auth"
"org.opencontainers.image.revision" = "${REF}"
"org.opencontainers.image.version=" = "${VERSION}"
}
tags = [
// "untanky/authenticator-app:${VERSION}",
IS_LATEST ? "ghcr.io/untanky/authenticator-app:latest" : "",
"ghcr.io/untanky/authenticator-app:${VERSION}",
]
cache-from = [
"type=gha"
]
cache-to = [
"type=gha,mode=max"
]
platforms = [
"linux/amd64"
]
}
target oauth2 {
dockerfile = "Dockerfile"
context = "apps/oauth2"
labels = {
"org.opencontainers.image.name" = "modern-auth/oauth2-service"
"org.opencontainers.image.description" = "Service for handling OAuth2.1"
"org.opencontainers.image.url" = "https://github.com/Untanky/modern-auth"
"org.opencontainers.image.source" = "https://github.com/Untanky/modern-auth"
"org.opencontainers.image.revision" = "${REF}"
"org.opencontainers.image.version=" = "${VERSION}"
}
tags = [
// "untanky/authenticator-app:${VERSION}",
IS_LATEST ? "ghcr.io/untanky/oauth2-service:latest" : "",
"ghcr.io/untanky/oauth2-service:${VERSION}",
]
cache-from = [
"type=gha"
]
cache-to = [
"type=gha,mode=max"
]
platforms = [
"linux/amd64"
]
}
target webauthn {
dockerfile = "Dockerfile"
context = "apps/webauthn"
labels = {
"org.opencontainers.image.name" = "modern-auth/webauthn-service"
"org.opencontainers.image.description" = "Service for handling WebAuthn"
"org.opencontainers.image.url" = "https://github.com/Untanky/modern-auth"
"org.opencontainers.image.source" = "https://github.com/Untanky/modern-auth"
"org.opencontainers.image.revision" = "${REF}"
"org.opencontainers.image.version=" = "${VERSION}"
}
tags = [
// "untanky/authenticator-app:${VERSION}",
IS_LATEST ? "ghcr.io/untanky/webauthn-service:latest" : "",
"ghcr.io/untanky/webauthn-service:${VERSION}",
]
cache-from = [
"type=gha"
]
cache-to = [
"type=gha,mode=max"
]
platforms = [
"linux/amd64"
]
}
target passwords {
dockerfile = "Dockerfile"
context = "apps/passwords"
labels = {
"org.opencontainers.image.name" = "modern-auth/passwords-service"
"org.opencontainers.image.description" = "Service for handling passwords over WebAuthn"
"org.opencontainers.image.url" = "https://github.com/Untanky/modern-auth"
"org.opencontainers.image.source" = "https://github.com/Untanky/modern-auth"
"org.opencontainers.image.revision" = "${REF}"
"org.opencontainers.image.version=" = "${VERSION}"
}
tags = [
// "untanky/authenticator-app:${VERSION}",
IS_LATEST ? "ghcr.io/untanky/passwords-service:latest" : "",
"ghcr.io/untanky/passwords-service:${VERSION}",
]
cache-from = [
"type=gha"
]
cache-to = [
"type=gha,mode=max"
]
platforms = [
"linux/amd64"
]
}