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

#61 WAIT_HOSTS are set to "redis:6379" by default and...

#61 WAIT_HOSTS are set to "redis:6379" by default and deployment will wait for those hosts before continuing after "docker compose up"
parent 0c445180
No related branches found
No related tags found
No related merge requests found
......@@ -39,6 +39,7 @@ variables:
THEME_BUILD_NODE_IMG: 'registry.lakedrops.com/docker/node:16-stretch-slim'
THEME_CSS_PATH: web/core/themes/olivero/css
UPDATE_DB_COMMAND: 'drush -y updatedb'
WAIT_HOSTS: 'redis:6379'
include:
- project: 'gitlab-ci-cd/drupal'
......
......@@ -624,9 +624,11 @@ Debug:
- docker compose exec -u root php bash -c 'chmod -R ug+w web/sites/*/private'
- docker compose exec -u root php bash -c 'chmod 444 /data/*/*/.htaccess >/dev/null 2>&1 || true'
- docker compose exec -u root borgmatic chmod -R go-w-r-x /root/.ssh || true
- docker compose cp /wait php:/wait
- if [[ "$WAIT_HOSTS" != "none" ]]; them docker compose exec -e WAIT_HOSTS=${WAIT_HOSTS} -it php /wait; fi
- if [[ ! -d /data/${CI_COMMIT_REF_NAME}/backup/config/security ]]; then docker compose exec -u root borgmatic borgmatic --init --encryption repokey || true; fi
- if [[ -f ./crontabs/jobs.ini ]]; then docker compose exec -u root php chown -R www-data:www-data /var/backups/mysql || true; fi
- if [[ "$INITIAL" == "no" ]]; then sleep 3; drush -y cache-rebuild; fi
- if [[ "$INITIAL" == "no" ]]; then drush -y cache-rebuild; fi
- if [[ "$INITIAL" == "no" ]] && [[ "${SKIPCONFIGIMPORT}" == "no" ]]; then drush -y config-import; fi
- if [[ "$INITIAL" == "no" ]]; then ${UPDATE_DB_COMMAND}; fi
- if [[ "$INITIAL" == "no" ]] && [[ "${DISABLENODEACCESSREBUILD}" == "no" ]]; then drush -y php:eval "node_access_rebuild();"; 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