diff --git a/ts/manager.docker/mod.classes.dockerfile.ts b/ts/manager.docker/mod.classes.dockerfile.ts index 3fdff23..2bd9e51 100644 --- a/ts/manager.docker/mod.classes.dockerfile.ts +++ b/ts/manager.docker/mod.classes.dockerfile.ts @@ -271,9 +271,10 @@ export class Dockerfile { await bash(`docker push ${this.pushTag}`); console.log('you can get the digest using this command'); console.log(`docker inspect --format='{{index .RepoDigests 0}}' ${this.pushTag}`); - /* const imageDigest = (await bash( - `docker inspect --format='{{index .RepoDigests 0}}' ${pushTag}` - )).split('@')[1]; */ + const imageDigest = await bash( + `docker inspect --format='{{index .RepoDigests 0}}' ${this.pushTag}` + ); + console.log(imageDigest); await this.npmciDockerManagerRef.npmciRef.cloudlyConnector.announceDockerContainer({ dockerImageUrl: this.pushTag, dockerImageVersion: this.npmciDockerManagerRef.npmciRef.npmciConfig.getConfig().projectInfo