-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-bake.hcl
More file actions
62 lines (51 loc) · 1.95 KB
/
docker-bake.hcl
File metadata and controls
62 lines (51 loc) · 1.95 KB
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
// docker-bake.hcl
// Builds 3 services (multi-arch) from local Dockerfiles and pushes to GHCR.
// Image names must be LOWERCASE.
variable "REGISTRY_GHCR" { default = "ghcr.io" }
variable "OWNER" { default = "hasanjaved-developer" } // overridden by workflow
variable "REPO_SLUG" { default = "centralized-logging" } // your namespace/group
variable "DOCKERHUB_NAMESPACE" { default = "hasanjaveddeveloper" } // optional
group "default" {
targets = ["userapi", "api", "web"]
}
/* ---------------------- userapi (UserManagementApi) ---------------------- */
target "userapi" {
// Your project folder contains UserManagementApi.csproj + Dockerfile
context = "."
dockerfile = "./UserManagementApi/Dockerfile"
// Default tag; workflow should append latest/semver etc. via --set
tags = [
"${REGISTRY_GHCR}/${OWNER}/${REPO_SLUG}/userapi:edge"
]
platforms = ["linux/amd64", "linux/arm64"]
labels = {
"org.opencontainers.image.source" = "https://github.com/${OWNER}/CentralizedLoggingMonitoring"
"org.opencontainers.image.title" = "userapi"
}
}
/* ---------------------- api (CentralizedLoggingApi) ---------------------- */
target "api" {
context = "."
dockerfile = "./CentralizedLoggingApi/Dockerfile"
tags = [
"${REGISTRY_GHCR}/${OWNER}/${REPO_SLUG}/api:edge"
]
platforms = ["linux/amd64", "linux/arm64"]
labels = {
"org.opencontainers.image.source" = "https://github.com/${OWNER}/CentralizedLoggingMonitoring"
"org.opencontainers.image.title" = "api"
}
}
/* ---------------------- web (IntegrationPortal) ---------------------- */
target "web" {
context = "."
dockerfile = "./ApiIntegrationMvc/Dockerfile"
tags = [
"${REGISTRY_GHCR}/${OWNER}/${REPO_SLUG}/web:edge"
]
platforms = ["linux/amd64", "linux/arm64"]
labels = {
"org.opencontainers.image.source" = "https://github.com/${OWNER}/CentralizedLoggingMonitoring"
"org.opencontainers.image.title" = "web"
}
}