fix(core): update
This commit is contained in:
parent
1fbc09f557
commit
0e4e07a912
@ -56,7 +56,7 @@ export class DockerHost {
|
|||||||
/**
|
/**
|
||||||
* gets the token from the .docker/config.json file for GitLab registry
|
* gets the token from the .docker/config.json file for GitLab registry
|
||||||
*/
|
*/
|
||||||
public getGitlabComTokenFromDockerConfig() {
|
public async getGitlabComTokenFromDockerConfig() {
|
||||||
const dockerConfigPath = plugins.smartpath.get.home('~/.docker/config.json');
|
const dockerConfigPath = plugins.smartpath.get.home('~/.docker/config.json');
|
||||||
const configObject = plugins.smartfile.fs.toObjectSync(dockerConfigPath);
|
const configObject = plugins.smartfile.fs.toObjectSync(dockerConfigPath);
|
||||||
this.registryToken = configObject.auths['registry.gitlab.com'].auth;
|
this.registryToken = configObject.auths['registry.gitlab.com'].auth;
|
||||||
|
Loading…
Reference in New Issue
Block a user