Skip to content

Commit

Permalink
Fix encoding of registry credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobwgillespie committed Jan 24, 2025
1 parent 5c787b1 commit 37280a1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/build/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ func (b *Build) AdditionalTags() []string {

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

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

0 comments on commit 37280a1

Please sign in to comment.