Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Drupal
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitLab CI/CD
Drupal
Commits
cf9ce1a6
Commit
cf9ce1a6
authored
2 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
Allow replacing "drush -y updatedb" with a custom command using UPDATE_DB_COMMAND
parent
86d8d009
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lakedrops.yml
+1
-0
1 addition, 0 deletions
lakedrops.yml
test-and-deploy.yml
+5
-5
5 additions, 5 deletions
test-and-deploy.yml
with
6 additions
and
5 deletions
lakedrops.yml
+
1
−
0
View file @
cf9ce1a6
...
...
@@ -36,6 +36,7 @@ variables:
THEME_BUILD_COMMAND
:
'
./node_modules/gulp/bin/gulp.js
sass'
THEME_BUILD_NODE_IMG
:
'
registry.lakedrops.com/docker/node:12-stretch-slim'
THEME_CSS_PATH
:
web/core/themes/olivero/css
UPDATE_DB_COMMAND
:
'
drush
-y
updatedb'
include
:
-
project
:
'
gitlab-ci-cd/drupal'
...
...
This diff is collapsed.
Click to expand it.
test-and-deploy.yml
+
5
−
5
View file @
cf9ce1a6
...
...
@@ -129,11 +129,11 @@ Debug:
GIT_STRATEGY
:
none
script
:
-
docker cp ${PROJECT_NAME}.sql ${COMPOSE_PROJECT_NAME}-php-1:/var/www/html
-
drush sql:drop
--yes
-
drush
-y
sql:drop
-
drush sql:query --file=../${PROJECT_NAME}.sql
-
drush cr
-
if [[ "${SKIPCONFIGIMPORT}" == "no" ]]; then drush -y config-import; fi
-
drush updatedb
-
${UPDATE_DB_COMMAND}
-
drush cr
.prerequisites
:
...
...
@@ -490,8 +490,8 @@ Debug:
GIT_STRATEGY
:
none
script
:
-
drush cr
-
if [[ "${SKIPCONFIGIMPORT}" == "no" ]]; then drush config-import; fi
-
drush updatedb
-
if [[ "${SKIPCONFIGIMPORT}" == "no" ]]; then drush
-y
config-import; fi
-
${UPDATE_DB_COMMAND}
-
drush cr
rules
:
-
if
:
'
$DBREQUIRED
==
"yes"'
...
...
@@ -613,7 +613,7 @@ Debug:
-
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" ]] && [[ "${SKIPCONFIGIMPORT}" == "no" ]]; then drush -y config-import; fi
-
if [[ "$INITIAL" == "no" ]]; then
drush -y updatedb
; fi
-
if [[ "$INITIAL" == "no" ]]; then
${UPDATE_DB_COMMAND}
; fi
-
if [[ "$INITIAL" == "no" ]]; then drush -y php:eval "node_access_rebuild();"; fi
-
if [[ "$INITIAL" == "no" ]]; then drush -y deploy:hook; fi
-
if [[ "$INITIAL" == "no" ]]; then drush -y sset system.maintenance_mode 0; fi
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment