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

Really exit on failure

parent c1010e6f
No related branches found
No related tags found
1 merge request!44Optimize CI and remove deployment steps, add Mattermost and update Etherpad
#!/bin/sh
set -e
# 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
......@@ -20,4 +18,5 @@ echo "export MODIFIED_IMAGE=${RES}" > variables
# Image name with wanted registry and tag, fetched from Docker Compose
RES=$(cat $RES/docker-compose.yml | grep $RES | cut -d ':' -f2- | tr -d ' ')
if [ "$RES" = "" ]; then exit 1; fi
echo "export MODIFIED_IMAGE_FULL=${RES}" >> variables
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