From 8b77930ece9e4258c31473aaec7c02c80de1f439 Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Fri, 30 Aug 2019 18:39:59 +0200 Subject: [PATCH] fix(core): update --- ts/manager.docker/mod.classes.dockerfile.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/ts/manager.docker/mod.classes.dockerfile.ts b/ts/manager.docker/mod.classes.dockerfile.ts index ebe3136..6ce3c49 100644 --- a/ts/manager.docker/mod.classes.dockerfile.ts +++ b/ts/manager.docker/mod.classes.dockerfile.ts @@ -269,12 +269,10 @@ export class Dockerfile { ); await bash(`docker tag ${this.buildTag} ${this.pushTag}`); 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( + const imageDigest = (await bash( `docker inspect --format="{{index .RepoDigests 0}}" ${this.pushTag}` - ); - console.log(imageDigest); + )).split('@')[1]; + console.log(`The image ${this.pushTag} has digest ${imageDigest}`); await this.npmciDockerManagerRef.npmciRef.cloudlyConnector.announceDockerContainer({ dockerImageUrl: this.pushTag, dockerImageVersion: this.npmciDockerManagerRef.npmciRef.npmciConfig.getConfig().projectInfo