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

Add support for INITIAL_SETUP_COMMAND

parent 4ac3935e
No related branches found
No related tags found
No related merge requests found
......@@ -22,6 +22,7 @@ variables:
DISABLE_NODE_ACCESS_REBUILD: 0
ENVIRONMENT_NAME: ${PROJECT_NAME}/$CI_COMMIT_REF_NAME
ENVIRONMENT_URL: https://www.example.com/$SITE_NAME
INITIAL_SETUP_COMMAND: 'echo "Nothing to do for initial setup"'
LAKEDROPS_CI_PROJECT: gitlab-ci-cd/drupal
LAKEDROPS_CI_REF: main
LAKEDROPS_CI_FILE: disabled.yml
......
......@@ -633,6 +633,7 @@ Debug:
- if [[ "$INITIAL" == "no" ]]; then drush -y deploy:hook; fi
- if [[ "$INITIAL" == "no" ]]; then drush -y sset system.maintenance_mode 0; fi
- if [[ "$INITIAL" == "no" ]]; then drush -y cache-rebuild; fi
- if [[ "$INITIAL" == "yes" ]]; then ${INITIAL_SETUP_COMMAND}; fi
- if [[ -d ./crontabs ]]; then docker compose restart cron || true; fi
rules:
- if: '$DISABLE_DEPLOYMENT != "0"'
......
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