diff options
author | Kevin Alvarez <crazy-max@users.noreply.github.com> | 2023-05-11 15:52:13 +0200 |
---|---|---|
committer | CrazyMax <crazy-max@users.noreply.github.com> | 2023-05-11 15:52:41 +0200 |
commit | ae1ca671780967a29745c8abbdac0d60eee71655 (patch) | |
tree | 15a0a3977363c8f7f480d77936f50a99574d21b2 | |
parent | 698fa85f38a1ddec0101b25c1e2a50fd59863810 (diff) | |
download | docker-ae1ca671780967a29745c8abbdac0d60eee71655.tar.gz |
bin-image bake target
Allows to build a non-runnable image that contains bundles.
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
-rw-r--r-- | docker-bake.hcl | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/docker-bake.hcl b/docker-bake.hcl index 899551f9e4..26548016d9 100644 --- a/docker-bake.hcl +++ b/docker-bake.hcl @@ -153,6 +153,30 @@ target "all-cross" { } # +# bin image +# + +target "bin-image" { + inherits = ["all"] + tags = ["moby-bin:local"] + output = ["type=docker"] +} + +target "bin-image-cross" { + inherits = ["bin-image"] + output = ["type=image"] + platforms = [ + "linux/amd64", + "linux/arm/v6", + "linux/arm/v7", + "linux/arm64", + "linux/ppc64le", + "linux/s390x", + "windows/amd64" + ] +} + +# # dev # |