Pablo Zmdl c1a7cb1ddc Separate workflow for development image
It needs different testing than the main images, thus we use standalone
workflows.

This also makes the main workflows ignore changes in development/ and
nightly/
2025-06-16 15:29:00 +02:00

20 lines
557 B
Bash
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/usr/bin/env bash
EXPECTED_STRING='Error: No source code in /var/www/html you must mount your code base to that path!'
ContID="$(docker run -d roundcube/roundcubemail:development)"
sleep 5
if $(docker logs $ContID 2>&1 | grep -q "$EXPECTED_STRING"); then
docker rm -f $ContID 2>&1 >/dev/null
echo "✅ Test successful "
exit 0
fi
echo "⚠️ Error: The container output did not contain the expected string '$EXPECTED_STRING', the test failed!"
echo "Container output:"
docker logs $ContID
docker rm -f $ContID 2>&1 >/dev/null
exit 1