Skip to content
Snippets Groups Projects
Commit 65459d55 authored by jurgenhaas's avatar jurgenhaas
Browse files

#1 Testing

parent 10a61506
No related branches found
No related tags found
No related merge requests found
......@@ -55,6 +55,7 @@ stages:
variables:
GIT_STRATEGY: none
script: |
docker container ls --all -q -f name=^${COMPOSE_PROJECT_NAME}_mariadb_1$
DBREQUIRED="no"
if [[ "$CI_COMMIT_REF_NAME" == "master" ]]; then
DBREQUIRED="yes"
......@@ -68,7 +69,7 @@ stages:
DBREQUIRED="yes"
else
TABLES=$(docker exec ${COMPOSE_PROJECT_NAME}_mariadb_1 mysql -u drupal --password=drupal -e "show tables;" drupal 2>/dev/null|grep users)
if [[ ! -n ${ID} ]]; then
if [[ ! -n ${TABLES} ]]; then
DBREQUIRED="yes"
fi
fi
......
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