improve log messages

This commit is contained in:
2017-08-25 22:41:13 +02:00
parent ae5b1b1fa7
commit c012810a8c
2 changed files with 6 additions and 3 deletions

View File

@ -33,7 +33,7 @@ let npm = async () => {
let docker = async () => {
env.setDockerRegistry('docker.io') // TODO: checkup why we set this here
// handle other registries
// handle registries
plugins.smartparam.forEachMinimatch(process.env, 'NPMCI_LOGIN_DOCKER*', async (envString) => {
let dockerRegexResultArray = process.env.NPMCI_LOGIN_DOCKER.split('|')
if (dockerRegexResultArray.length !== 3) {
@ -49,6 +49,8 @@ let docker = async () => {
} else {
await bash(`docker login -u ${username} -p ${password} ${registry}`)
}
plugins.beautylog.success(`docker authenticated for ${registry}!`)
})
// Always login to GitLab Registry