Push only if image test succeeds

This commit is contained in:
Leonard Jonathan Oh 2023-04-14 08:55:46 +00:00
parent 5fac68f2c4
commit 9f3a47ed53
5 changed files with 35 additions and 11 deletions

View file

@ -0,0 +1,7 @@
#!/bin/sh
# This script uses docker buildx to build a docker image, and loads it into the docker daemon. Then it executes ./test.sh to test the docker image
# It is useful for testing release builds in development
set -eu
IMAGE=snappymail/snappymail:test
DOCKER_BUILDX=1 docker buildx build --progress plain --load -t "$IMAGE" -f .docker/release/Dockerfile .
.docker/release/test/test.sh "$IMAGE"