From 3b4bca5d3bd9d1bc4789d865cb7b7dff85b607b1 Mon Sep 17 00:00:00 2001 From: "kernel-internal[bot]" <260533166+kernel-internal[bot]@users.noreply.github.com> Date: Sun, 15 Feb 2026 15:30:03 +0000 Subject: [PATCH] CLI: Update hypeman SDK to a63ff054a3 and add --image-name flag - Updated hypeman-go to v0.11.0 (a63ff054a3ddb27eb3031d0750c86b67047cf0dc) - Added --image-name flag to `hypeman build` for BuildNewParams.ImageName Co-authored-by: Cursor --- go.mod | 2 +- go.sum | 4 ++-- pkg/cmd/build.go | 7 +++++++ 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 8430715..72b6685 100644 --- a/go.mod +++ b/go.mod @@ -10,7 +10,7 @@ require ( github.com/google/go-containerregistry v0.20.7 github.com/gorilla/websocket v1.5.3 github.com/itchyny/json2yaml v0.1.4 - github.com/kernel/hypeman-go v0.10.0 + github.com/kernel/hypeman-go v0.11.0 github.com/muesli/reflow v0.3.0 github.com/stretchr/testify v1.11.1 github.com/tidwall/gjson v1.18.0 diff --git a/go.sum b/go.sum index b924838..9c99ded 100644 --- a/go.sum +++ b/go.sum @@ -72,8 +72,8 @@ github.com/grpc-ecosystem/grpc-gateway/v2 v2.27.2 h1:8Tjv8EJ+pM1xP8mK6egEbD1OgnV github.com/grpc-ecosystem/grpc-gateway/v2 v2.27.2/go.mod h1:pkJQ2tZHJ0aFOVEEot6oZmaVEZcRme73eIFmhiVuRWs= github.com/itchyny/json2yaml v0.1.4 h1:/pErVOXGG5iTyXHi/QKR4y3uzhLjGTEmmJIy97YT+k8= github.com/itchyny/json2yaml v0.1.4/go.mod h1:6iudhBZdarpjLFRNj+clWLAkGft+9uCcjAZYXUH9eGI= -github.com/kernel/hypeman-go v0.10.0 h1:terBKYBwHAtDic425oUrb3RZMo0Q0DrXjPiVNmDXblE= -github.com/kernel/hypeman-go v0.10.0/go.mod h1:guRrhyP9QW/ebUS1UcZ0uZLLJeGAAhDNzSi68U4M9hI= +github.com/kernel/hypeman-go v0.11.0 h1:hCXNUHtrhGKswJapzyWyozBOXhKK/oreKvm0AXHuE6c= +github.com/kernel/hypeman-go v0.11.0/go.mod h1:guRrhyP9QW/ebUS1UcZ0uZLLJeGAAhDNzSi68U4M9hI= github.com/klauspost/compress v1.18.1 h1:bcSGx7UbpBqMChDtsF28Lw6v/G94LPrrbMbdC3JH2co= github.com/klauspost/compress v1.18.1/go.mod h1:ZQFFVG+MdnR0P+l6wpXgIL4NTtwiKIdBnrBd8Nrxr+0= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= diff --git a/pkg/cmd/build.go b/pkg/cmd/build.go index 04f93ef..21deedb 100644 --- a/pkg/cmd/build.go +++ b/pkg/cmd/build.go @@ -73,6 +73,10 @@ Examples: Name: "secrets", Usage: `JSON array of secret references to inject during build (e.g., '[{"id":"npm_token"}]')`, }, + &cli.StringFlag{ + Name: "image-name", + Usage: `Custom image name for the build output (pushed to {registry}/{image_name} instead of {registry}/builds/{id})`, + }, }, Commands: []*cli.Command{ &buildListCmd, @@ -165,6 +169,9 @@ func handleBuild(ctx context.Context, cmd *cli.Command) error { if v := cmd.String("secrets"); v != "" { params.Secrets = hypeman.Opt(v) } + if v := cmd.String("image-name"); v != "" { + params.ImageName = hypeman.Opt(v) + } // Start build build, err := client.Builds.New(ctx, params, opts...)