mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-29 10:12:38 +02:00

Use the full image tag (dangerzone.rocks/dangerzone:latest) when building the image. Else, we risk creating a `share/image-id.txt` file with multiple IDs in it, if we have another `dangerzone.rocks/dangerzone` image (with a different tag) in our dev environment.
14 lines
312 B
Bash
Executable file
14 lines
312 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 --filter=reference=$TAG > share/image-id.txt
|