Skip to content
Snippets Groups Projects
Verified Commit 076e23ba authored by Igor Witz's avatar Igor Witz
Browse files

fix: detect the right image name when there are many

parent 3ae4f908
No related branches found
No related tags found
1 merge request!36fix: detect the right image name when there are many
#!/bin/sh
# retrieve the name of the image that was modified in the latest commit
# retrieve the name and the version of the image that was modified in the latest commit
# this script should become obsolete as soon as a proper way of getting the modified files is added to Gitlab CI
RES=""
......@@ -17,7 +17,7 @@ then
exit 1
fi
RES=$(cat $RES/docker-compose.yml | grep image: | head -n1 | cut -d ':' -f2-)
RES=$(cat $RES/docker-compose.yml | grep $RES | cut -d ':' -f2-)
if [[ "$RES" == "" ]]
then
echo "No image modified"
......
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