mirror of
https://github.com/SAP/jenkins-library.git
synced 2024-12-12 10:55:20 +02:00
debug(cnbbuild): Add some debug messages (#3688)
Co-authored-by: Ralf Pannemans <ralf.pannemans@sap.com> Co-authored-by: Philipp Stehle <philipp.stehle@sap.com>
This commit is contained in:
parent
dc91332e29
commit
0c28ecc4fb
@ -4,6 +4,7 @@ import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
|
||||
"github.com/SAP/jenkins-library/pkg/log"
|
||||
"github.com/docker/cli/cli/config/configfile"
|
||||
)
|
||||
|
||||
@ -25,6 +26,8 @@ func GenerateCnbAuth(config string, utils BuildUtils) (string, error) {
|
||||
|
||||
auth := map[string]string{}
|
||||
for registry, value := range dockerConfig.AuthConfigs {
|
||||
log.Entry().Debugf("Adding credentials for: registry %q", registry)
|
||||
|
||||
auth[registry] = fmt.Sprintf("Basic %s", value.Auth)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user