Grab just the image ID

When building the image, grab the image id using `-q`, which removes all
the decorations in the output and just keeps the image ID.
This commit is contained in:
Alex Pyrgiotis 2023-03-09 19:04:56 +02:00
parent a33dcfbb51
commit d768099912
No known key found for this signature in database
GPG key ID: B6C15EBA0357C9AA
2 changed files with 2 additions and 2 deletions

View file

@ -11,4 +11,4 @@ echo "Saving and compressing container image"
podman save $TAG | gzip > share/container.tar.gz
echo "Looking up the image id"
podman images --filter=reference=$TAG > share/image-id.txt
podman images -q --filter=reference=$TAG > share/image-id.txt

View file

@ -11,4 +11,4 @@ echo "Saving and compressing container image"
docker save $TAG | gzip > share/container.tar.gz
echo "Looking up the image id"
docker images --filter=reference=$TAG > share/image-id.txt
docker images -q --filter=reference=$TAG > share/image-id.txt