From 648effcf868e2c14e3ef8b5184f38506d2fed4a9 Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Fri, 30 Aug 2019 12:24:00 +0200 Subject: [PATCH] fix(core): update --- ts/manager.docker/mod.classes.dockerfile.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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