test: go project sample

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax
2023-03-13 14:29:12 +01:00
parent 41bb376a43
commit 6cf674e56b
5 changed files with 121 additions and 0 deletions

17
test/go/docker-bake.hcl Normal file
View 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"]
}