Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Documentation
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
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
DevOps Tools
Documentation
Commits
a4e18596
Commit
a4e18596
authored
4 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
#2
#3 Documentation for new features in Drupal pipelines
parent
e63db159
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#34287
passed
4 years ago
Stage: build
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/gitlab/drupal/index.md
+25
-3
25 additions, 3 deletions
docs/gitlab/drupal/index.md
with
25 additions
and
3 deletions
docs/gitlab/drupal/index.md
+
25
−
3
View file @
a4e18596
...
...
@@ -182,11 +182,19 @@ you have to write the scripts for those two tasks yourselves.
#### Variables
-
`COMPOSE_PROJECT_NAME`
-
`ENVIRONMENT_NAME`
-
`THEME_CSS_PATH`
-
`COMPOSE_PROJECT_NAME`
: a string only unique project name which will be used
to identify caches and Docker containers.
-
`ENVIRONMENT_NAME`
: the environment name for the GitLab UI.
-
`THEME_CSS_PATH`
: the relative path to the theme's css path where the
generated artefact can be found.
-
`PHP_MAJOR_VERSION`
: the major PHP version, defaults to 7.
-
`PHP_MINOR_VERSION`
: the minor PHP version, default to 4.
-
`COMPOSER_DOWNGRADE`
: by default, composer 2 is being used. To use composer 1
instead, set this variable to 1.
-
`INITIAL_INSTALL`
: if set to
`yes`
, the initial Drupal site installation gets
triggered and all DB and test tasks will be skipped.
-
`PULL_DB`
: if set to
`yes`
, the download of a fresh database dump will be
forced, regardless of any other conditions.
-
`DISABLE_CI_TESTS`
: if this variable is set to any value, the tasks in the
test stage will be skipped. This is useful e.g. in a development environment
where you push and run pipelines often but don't want to run the tests every
...
...
@@ -302,6 +310,20 @@ site in your inventory.
This chapter is incomplete so far and needs more attention.
### Initial installation of a Drupal site
This pipeline covers both, the initial installation and later updates of a
Drupal site. The latter is the default, because it happens regularely whereas
the initial installation only happens once.
Therefore, if you run the pipeline the first time to initially install the
Drupal site, either add
`[INITIAL_INSTALL]`
to your commit message or define
the variable
`INITIAL_INSTALL`
with the value
`yes`
when triggering the
pipeline from the GitLab UI.
When either of these conditions apply, no database will be downloaded, imported
or updated and all tests will be skipped.
### Handling of the database
To build and test your Drupal site prior to deployment, a database with content
...
...
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