test: go project sample
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
17
test/go/docker-bake.hcl
Normal file
17
test/go/docker-bake.hcl
Normal file
@@ -0,0 +1,17 @@
|
||||
variable "DESTDIR" {
|
||||
default = "/tmp/bake-build"
|
||||
}
|
||||
|
||||
group "default" {
|
||||
targets = ["binary"]
|
||||
}
|
||||
|
||||
target "binary" {
|
||||
target = "binary"
|
||||
output = [DESTDIR]
|
||||
}
|
||||
|
||||
target "image" {
|
||||
target = "image"
|
||||
tags = ["localhost:5000/name/app:latest"]
|
||||
}
|
||||
Reference in New Issue
Block a user