Feat: Local prod proxy
This commit is contained in:
36
Proxy/docker-bake.hcl
Normal file
36
Proxy/docker-bake.hcl
Normal file
@@ -0,0 +1,36 @@
|
||||
variable "REGISTRY" {
|
||||
default = "registry.example.com"
|
||||
}
|
||||
|
||||
variable "TAG" {
|
||||
default = "latest"
|
||||
}
|
||||
|
||||
target "_proxy" {
|
||||
context = "."
|
||||
dockerfile = "Proxy/Local/Dockerfile"
|
||||
}
|
||||
|
||||
target "prod" {
|
||||
inherits = ["_proxy"]
|
||||
target = "production"
|
||||
tags = ["moku/work-proxy:local-prod"]
|
||||
}
|
||||
|
||||
target "prod-image" {
|
||||
inherits = ["_proxy"]
|
||||
target = "production"
|
||||
tags = ["${REGISTRY}/moku/work-proxy:prod-${TAG}"]
|
||||
}
|
||||
|
||||
group "local" {
|
||||
targets = ["prod"]
|
||||
}
|
||||
|
||||
group "registry" {
|
||||
targets = ["prod-image"]
|
||||
}
|
||||
|
||||
group "default" {
|
||||
targets = ["prod"]
|
||||
}
|
||||
Reference in New Issue
Block a user