Skip to content
Snippets Groups Projects
Commit 84c828ce authored by Rémy Huet's avatar Rémy Huet :computer:
Browse files

Merge branch 'dev-ci' into 'master'

fix: detect the right image name when there are many

See merge request !36
parents 3ae4f908 076e23ba
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