now more efficiently retagging image during release stage

This commit is contained in:
Philipp Kunz 2016-06-07 14:45:27 +02:00
parent cebcfc9fc5
commit 4bc86ad7b8
2 changed files with 3 additions and 7 deletions

File diff suppressed because one or more lines are too long

View File

@ -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(){