mirror of https://github.com/knative/func.git
Add serveraddress to auth header of docker API (#543)
* Add serverURL to RegistryAuth Signed-off-by: Matej Vasek <mvasek@redhat.com> * fixup Signed-off-by: Matej Vasek <mvasek@redhat.com>
This commit is contained in:
parent
25f8b4d6ea
commit
8e882bc934
|
@ -210,7 +210,13 @@ func (n *Pusher) Push(ctx context.Context, f fn.Function) (digest string, err er
|
|||
}
|
||||
n.progressListener.Increment("Pushing function image to the registry")
|
||||
|
||||
b, err := json.Marshal(&credentials)
|
||||
authConfig := types.AuthConfig{
|
||||
Username: credentials.Username,
|
||||
Password: credentials.Password,
|
||||
ServerAddress: registry,
|
||||
}
|
||||
|
||||
b, err := json.Marshal(&authConfig)
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue