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

Ignore whitespace when fetching full image name

parent 79ef08f7
No related branches found
No related tags found
1 merge request!44Optimize CI and remove deployment steps, add Mattermost and update Etherpad
Pipeline #51094 failed
......@@ -17,5 +17,5 @@ done
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-)
RES=$(cat $RES/docker-compose.yml | grep $RES | cut -d ':' -f2- | tr -d ' ')
echo "export MODIFIED_IMAGE_FULL=${RES}" >> variables
......@@ -28,7 +28,7 @@ RESULT=`mysql -u${ETHERPAD_DB_USER} -p${ETHERPAD_DB_PASSWORD} \
-e "SHOW DATABASES LIKE '${ETHERPAD_DB_NAME}'"`
if [ "$RESULT" != $ETHERPAD_DB_NAME ]; then
# Mysql database does not exist, create it
# mysql database does not exist, create it
echo "Creating database ${ETHERPAD_DB_NAME}"
mysql -u${ETHERPAD_DB_USER} -p${ETHERPAD_DB_PASSWORD} -h${ETHERPAD_DB_HOST} \
......
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