update login

This commit is contained in:
2017-08-26 09:40:40 +02:00
parent 3e1397e13f
commit 24dd9edcae
3 changed files with 8 additions and 14 deletions

View File

@ -197,12 +197,8 @@ export class Dockerfile {
case 'release':
await bash(`docker tag ${this.buildTag} ${this.releaseTag}`)
await bash(`docker push ${this.releaseTag}`)
// if release registry is different from gitlab
if (NpmciEnv.dockerRegistry !== 'registry.gitlab.com') {
await bash(`docker tag ${this.buildTag} ${this.gitlabReleaseTag}`)
await bash(`docker push ${this.gitlabReleaseTag}`)
}
await bash(`docker tag ${this.buildTag} ${this.gitlabReleaseTag}`)
await bash(`docker push ${this.gitlabReleaseTag}`)
break
case 'test':
default: