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

fix: get modified image in merge requests

parent 7b80141b
No related branches found
No related tags found
1 merge request!32Correction bug get-modified-image.sh pour les MR
......@@ -4,7 +4,7 @@
# this script should become obsolete as soon as a proper way of getting the modified files is added to Gitlab CI
RES=""
for i in $(git log -m -1 --name-only --pretty="format:" $CI_COMMIT_SHA)
for i in $(git log -m -1 --name-only --pretty="format:" --first-parent)
do
case "$i" in
*pica*) RES=$(echo $i | cut -d '/' -f1);;
......
......@@ -13,7 +13,6 @@ RUN apk update && \
sed \
wget && \
pip install docker-compose && \
export CI_COMMIT_SHA=$(git rev-parse HEAD) && \
chmod +x get-modified-image.sh get-host-by-image.sh && \
export MODIFIED_IMAGE_FULL=$(./get-modified-image.sh) && \
export MODIFIED_IMAGE=$(echo $MODIFIED_IMAGE_FULL | cut -d ':' -f1) && \
......
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