Skip to content

Commit 3b4bca5

Browse files
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 <cursoragent@cursor.com>
1 parent bc93c5a commit 3b4bca5

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ require (
1010
github.com/google/go-containerregistry v0.20.7
1111
github.com/gorilla/websocket v1.5.3
1212
github.com/itchyny/json2yaml v0.1.4
13-
github.com/kernel/hypeman-go v0.10.0
13+
github.com/kernel/hypeman-go v0.11.0
1414
github.com/muesli/reflow v0.3.0
1515
github.com/stretchr/testify v1.11.1
1616
github.com/tidwall/gjson v1.18.0

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ github.com/grpc-ecosystem/grpc-gateway/v2 v2.27.2 h1:8Tjv8EJ+pM1xP8mK6egEbD1OgnV
7272
github.com/grpc-ecosystem/grpc-gateway/v2 v2.27.2/go.mod h1:pkJQ2tZHJ0aFOVEEot6oZmaVEZcRme73eIFmhiVuRWs=
7373
github.com/itchyny/json2yaml v0.1.4 h1:/pErVOXGG5iTyXHi/QKR4y3uzhLjGTEmmJIy97YT+k8=
7474
github.com/itchyny/json2yaml v0.1.4/go.mod h1:6iudhBZdarpjLFRNj+clWLAkGft+9uCcjAZYXUH9eGI=
75-
github.com/kernel/hypeman-go v0.10.0 h1:terBKYBwHAtDic425oUrb3RZMo0Q0DrXjPiVNmDXblE=
76-
github.com/kernel/hypeman-go v0.10.0/go.mod h1:guRrhyP9QW/ebUS1UcZ0uZLLJeGAAhDNzSi68U4M9hI=
75+
github.com/kernel/hypeman-go v0.11.0 h1:hCXNUHtrhGKswJapzyWyozBOXhKK/oreKvm0AXHuE6c=
76+
github.com/kernel/hypeman-go v0.11.0/go.mod h1:guRrhyP9QW/ebUS1UcZ0uZLLJeGAAhDNzSi68U4M9hI=
7777
github.com/klauspost/compress v1.18.1 h1:bcSGx7UbpBqMChDtsF28Lw6v/G94LPrrbMbdC3JH2co=
7878
github.com/klauspost/compress v1.18.1/go.mod h1:ZQFFVG+MdnR0P+l6wpXgIL4NTtwiKIdBnrBd8Nrxr+0=
7979
github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE=

pkg/cmd/build.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ Examples:
7373
Name: "secrets",
7474
Usage: `JSON array of secret references to inject during build (e.g., '[{"id":"npm_token"}]')`,
7575
},
76+
&cli.StringFlag{
77+
Name: "image-name",
78+
Usage: `Custom image name for the build output (pushed to {registry}/{image_name} instead of {registry}/builds/{id})`,
79+
},
7680
},
7781
Commands: []*cli.Command{
7882
&buildListCmd,
@@ -165,6 +169,9 @@ func handleBuild(ctx context.Context, cmd *cli.Command) error {
165169
if v := cmd.String("secrets"); v != "" {
166170
params.Secrets = hypeman.Opt(v)
167171
}
172+
if v := cmd.String("image-name"); v != "" {
173+
params.ImageName = hypeman.Opt(v)
174+
}
168175

169176
// Start build
170177
build, err := client.Builds.New(ctx, params, opts...)

0 commit comments

Comments
 (0)