now working correctly and async

This commit is contained in:
2017-08-28 01:35:21 +02:00
parent 71c30e7563
commit 563414882e
9 changed files with 41 additions and 18 deletions

View File

@@ -15,6 +15,7 @@ export class DockerRegistry {
this.registryUrl = optionsArg.registryUrl
this.username = optionsArg.username
this.password = optionsArg.password
plugins.beautylog.info(`created DockerRegistry for ${this.registryUrl}`)
}
static fromEnvString (envString: string): DockerRegistry {
@@ -41,6 +42,6 @@ export class DockerRegistry {
} else {
await bash(`docker login -u ${this.username} -p ${this.password} ${this.registryUrl}`)
}
plugins.beautylog.success(`docker authenticated for ${this.registryUrl}!`)
plugins.beautylog.ok(`docker authenticated for ${this.registryUrl}!`)
}
}