Skip to content
Snippets Groups Projects
Commit 0ea753f6 authored by Igor Witz's avatar Igor Witz
Browse files

fix: modified image detection

parent cdd3d15b
No related branches found
No related tags found
1 merge request!31MAJ CI + volumes dans Dokuwiki
......@@ -7,13 +7,15 @@ RES=""
for i in $(git log -m -1 --name-only --pretty="format:" $CI_COMMIT_SHA)
do
case "$i" in
*pica*) RES=$i ;;
*pica*) RES=$(echo $i | cut -d '/' -f1);;
esac
done
RES=$(cat $RES/docker-compose.yml | grep image: | head -n1 | cut -d ':' -f2-)
if [[ "$RES" == "" ]]
then
echo "No image modified"
exit 1
else
echo $RES
fi
RES=$(cat $RES/docker-compose.yml | grep image: | head -n1 | cut -d ':' -f2-)
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