From ea8636e790eb360d2e618f99eccda40869e4c2c9 Mon Sep 17 00:00:00 2001 From: Petr Kubat Date: Tue, 6 Aug 2019 09:09:49 +0200 Subject: [PATCH] make imageID prefix optional as podman changed output format related: https://github.com/containers/libpod/issues/3191 --- build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 0e5b91de..e9623d6d 100755 --- a/build.sh +++ b/build.sh @@ -109,7 +109,7 @@ function docker_build_with_version { fi parse_output 'docker build '"$BUILD_OPTIONS"' -f "$dockerfile" "${DOCKER_BUILD_CONTEXT}"' \ - "tail -n 1 | awk '/Successfully built|^--> (Using cache )?[a-fA-F0-9]+$/{print \$NF}'" \ + "tail -n 1 | awk '/Successfully built|(^--> )?(Using cache )?[a-fA-F0-9]+$/{print \$NF}'" \ IMAGE_ID clean_image echo "$IMAGE_ID" > .image-id.raw