now more efficiently retagging image during release stage
This commit is contained in:
parent
cebcfc9fc5
commit
4bc86ad7b8
6
dist/npmci.build.docker.js
vendored
6
dist/npmci.build.docker.js
vendored
File diff suppressed because one or more lines are too long
@ -184,13 +184,11 @@ export class Dockerfile {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
release(){
|
release(){
|
||||||
bashBare("docker tag " + this.getId() + " " + this.releaseTag);
|
bashBare("docker tag " + this.buildTag + " " + this.releaseTag);
|
||||||
bashBare("docker push " + this.releaseTag);
|
bashBare("docker push " + this.releaseTag);
|
||||||
}
|
}
|
||||||
getId(){
|
getId(){
|
||||||
console.log("docker inspect --type=image --format=\"{{.Id}}\" " + this.buildTag);
|
|
||||||
let containerId = bashBare("docker inspect --type=image --format=\"{{.Id}}\" " + this.buildTag);
|
let containerId = bashBare("docker inspect --type=image --format=\"{{.Id}}\" " + this.buildTag);
|
||||||
console.log(containerId);
|
|
||||||
return containerId;
|
return containerId;
|
||||||
};
|
};
|
||||||
patchContents(){
|
patchContents(){
|
||||||
|
Loading…
Reference in New Issue
Block a user