1
0
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:
Ralf Pannemans 2022-03-31 15:02:06 +02:00 committed by GitHub
parent dc91332e29
commit 0c28ecc4fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
}