Skip to content
Snippets Groups Projects
Verified Commit 7335bbd1 authored by Quentin Duchemin's avatar Quentin Duchemin
Browse files

[CI] More informative error messages in get-modified-image.sh

parent 83ff180c
No related branches found
No related tags found
No related merge requests found
......@@ -15,12 +15,15 @@ do
esac
done
echo "export MODIFIED_IMAGE=${RES}" > variables
echo "Using modified folder : $RES"
# Image name with wanted registry and tag, fetched from Docker Compose
RES=$(cat $RES/docker-compose.yml | grep $RES: | cut -d ':' -f2- | cut -d '/' -f2- | tr -d ' ')
if [ "$RES" = "" ]; then exit 1; fi
if [ "$RES" = "" ]; then
echo "Error : no reference to $RES found in docker-compose.yml."
echo "Please check the repository README : the name of the folder must be the same as name of the image."
exit 1
fi
echo "export MODIFIED_IMAGE_FULL_TEST=registry.test.picasoft.net/${RES}" >> variables
echo "export MODIFIED_IMAGE_FULL=registry.picasoft.net/${RES}" >> variables
echo "Found modified folder : $RES"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment