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

@@ -72,7 +72,7 @@ export let prepare = async () => {
// Always login to GitLab Registry
if (!process.env.CI_BUILD_TOKEN || process.env.CI_BUILD_TOKEN === '') {
plugins.beautylog.error('No registry token specified by gitlab!')
return
process.exit(1)
}
npmciRegistryStorage.addRegistry(new DockerRegistry({
registryUrl: 'registry.gitlab.com',
@@ -81,7 +81,7 @@ export let prepare = async () => {
}))
// handle registries
plugins.smartparam.forEachMinimatch(process.env, 'NPMCI_LOGIN_DOCKER*', async (envString) => {
await plugins.smartparam.forEachMinimatch(process.env, 'NPMCI_LOGIN_DOCKER*', async (envString) => {
npmciRegistryStorage.addRegistry(
DockerRegistry.fromEnvString(envString)
)