fix docker gitlab login

This commit is contained in:
Philipp Kunz 2016-06-03 17:24:55 +02:00
parent 806647d7c3
commit dda4893e39

View File

@ -41,7 +41,7 @@ let dockerGitlab = function(){
let done = plugins.q.defer();
env.dockerRegistry = "registry.gitlab.io"
let ciBuildToken = process.env.CI_BUILD_TOKEN
plugins.shelljs.exec("docker login -u gitlab-ci-token -p " + ciBuildToken + " registry.gitlab.com");
plugins.shelljs.exec("docker login -u gitlab-ci-token -p " + ciBuildToken + " " + env.dockerRegistry);
done.resolve();
return done.promise;
}