fix(core): update
This commit is contained in:
parent
ba672d030f
commit
8b77930ece
@ -269,12 +269,10 @@ export class Dockerfile {
|
|||||||
);
|
);
|
||||||
await bash(`docker tag ${this.buildTag} ${this.pushTag}`);
|
await bash(`docker tag ${this.buildTag} ${this.pushTag}`);
|
||||||
await bash(`docker push ${this.pushTag}`);
|
await bash(`docker push ${this.pushTag}`);
|
||||||
console.log('you can get the digest using this command');
|
const imageDigest = (await bash(
|
||||||
console.log(`docker inspect --format="{{index .RepoDigests 0}}" ${this.pushTag}`);
|
|
||||||
const imageDigest = await bash(
|
|
||||||
`docker inspect --format="{{index .RepoDigests 0}}" ${this.pushTag}`
|
`docker inspect --format="{{index .RepoDigests 0}}" ${this.pushTag}`
|
||||||
);
|
)).split('@')[1];
|
||||||
console.log(imageDigest);
|
console.log(`The image ${this.pushTag} has digest ${imageDigest}`);
|
||||||
await this.npmciDockerManagerRef.npmciRef.cloudlyConnector.announceDockerContainer({
|
await this.npmciDockerManagerRef.npmciRef.cloudlyConnector.announceDockerContainer({
|
||||||
dockerImageUrl: this.pushTag,
|
dockerImageUrl: this.pushTag,
|
||||||
dockerImageVersion: this.npmciDockerManagerRef.npmciRef.npmciConfig.getConfig().projectInfo
|
dockerImageVersion: this.npmciDockerManagerRef.npmciRef.npmciConfig.getConfig().projectInfo
|
||||||
|
Loading…
Reference in New Issue
Block a user