mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-28 18:02:38 +02:00
Always pull base image when building ours
Always pull the base container image (alpine:latest) before building our own container image. Else, in an environments that we haven't touched for a while, an older image may be used.
This commit is contained in:
parent
0296844e36
commit
03df60db5f
3 changed files with 3 additions and 2 deletions
|
@ -5,7 +5,7 @@ set -e
|
||||||
TAG=dangerzone.rocks/dangerzone:latest
|
TAG=dangerzone.rocks/dangerzone:latest
|
||||||
|
|
||||||
echo "Building container image"
|
echo "Building container image"
|
||||||
podman build dangerzone/ -f Dockerfile --tag $TAG
|
podman build --pull dangerzone/ -f Dockerfile --tag $TAG
|
||||||
|
|
||||||
echo "Saving and compressing container image"
|
echo "Saving and compressing container image"
|
||||||
podman save $TAG | gzip > share/container.tar.gz
|
podman save $TAG | gzip > share/container.tar.gz
|
||||||
|
|
|
@ -5,7 +5,7 @@ set -e
|
||||||
TAG=dangerzone.rocks/dangerzone:latest
|
TAG=dangerzone.rocks/dangerzone:latest
|
||||||
|
|
||||||
echo "Building container image"
|
echo "Building container image"
|
||||||
docker build dangerzone/ -f Dockerfile --tag $TAG
|
docker build --pull dangerzone/ -f Dockerfile --tag $TAG
|
||||||
|
|
||||||
echo "Saving and compressing container image"
|
echo "Saving and compressing container image"
|
||||||
docker save $TAG | gzip > share/container.tar.gz
|
docker save $TAG | gzip > share/container.tar.gz
|
||||||
|
|
|
@ -9,6 +9,7 @@ def main():
|
||||||
[
|
[
|
||||||
"docker",
|
"docker",
|
||||||
"build",
|
"build",
|
||||||
|
"--pull",
|
||||||
"dangerzone/",
|
"dangerzone/",
|
||||||
"-f",
|
"-f",
|
||||||
"Dockerfile",
|
"Dockerfile",
|
||||||
|
|
Loading…
Reference in a new issue