mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-28 18:02:38 +02:00

When building the image, grab the image id using `-q`, which removes all the decorations in the output and just keeps the image ID.
14 lines
315 B
Bash
Executable file
14 lines
315 B
Bash
Executable file
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
TAG=dangerzone.rocks/dangerzone:latest
|
|
|
|
echo "Building container image"
|
|
docker build container --tag $TAG
|
|
|
|
echo "Saving and compressing container image"
|
|
docker save $TAG | gzip > share/container.tar.gz
|
|
|
|
echo "Looking up the image id"
|
|
docker images -q --filter=reference=$TAG > share/image-id.txt
|