Skip to content

Commit 37280a1

Browse files
Fix encoding of registry credentials
1 parent 5c787b1 commit 37280a1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/build/build.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ func (b *Build) AdditionalTags() []string {
5454

5555
func (b *Build) AdditionalCredentials() []Credential {
5656
if b.Response == nil || b.Response.Msg == nil {
57-
return []Credential{{Host: "registry.depot.dev", Token: b.Token}}
57+
token := base64.StdEncoding.EncodeToString([]byte(fmt.Sprintf("x-token:%s", b.Token)))
58+
return []Credential{{Host: "registry.depot.dev", Token: token}}
5859
}
5960

6061
creds := make([]Credential, 0, len(b.Response.Msg.AdditionalCredentials))

0 commit comments

Comments
 (0)