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
54ba6972
Commit
54ba6972
authored
8 months ago
by
danielspeicher
Browse files
Options
Downloads
Patches
Plain Diff
Document stages and jobs.
parent
5f2a6a32
No related branches found
No related tags found
1 merge request
!23
Develop
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/gitlab/drupal/index.md
+29
-1
29 additions, 1 deletion
docs/gitlab/drupal/index.md
with
29 additions
and
1 deletion
docs/gitlab/drupal/index.md
+
29
−
1
View file @
54ba6972
...
...
@@ -175,7 +175,7 @@ that we setup our own `LakeDrops` tools by `composer lakedrops:scaffold` and
`composer lakedrops:docker4drupal`
.
The next step is to pull all required
[
Docker
](
https://www.docker.com/
)
images
with
[
Docker Compose
](
https://docs.docker.com/compose/
)
a
d
n start the services.
with
[
Docker Compose
](
https://docs.docker.com/compose/
)
an
d
start the services.
After everything has started, we create some directories, e.g. for styles, logs and JavaScript.
...
...
@@ -371,6 +371,34 @@ The following jobs must run before successfully:
-
[
Build Prod Site NG
](
#build-prod-site-ng
)
-
[
Build Theme
](
#build-theme
)
First we have to do some preparation. This is done in the
`before_script`
section.
-
[
.prepareaccess
](
#prepareaccess
)
This job does not use
[
Ansible
](
https://www.ansible.com/
)
. A lot of commands are executed in the script section.
Here is a summary:
-
create the directories, where the site gets deployed to:
-
app
-
db
-
files
-
redis
-
backup
-
sets the ownership and permissions of these files
-
start all the docker service with
[
Docker Compose
](
https://docs.docker.com/compose/
)
-
execute several
`drush`
commands
-
create config auto export directory
-
restart cron jobs
To see all the commands, visit
[
test_deploy.yml
](
https://gitlab.lakedrops.com/gitlab-ci-cd/drupal/-/blob/main/test-and-deploy.yml?ref_type=heads
)
.
Rules, when the job must not run:
-
`$DISABLE_DEPLOYMENT`
!= "0"
-
`$CI_COMMIT_BRANCH`
!= "main" &&
`$ENFORCE_DEPLOYMENT`
!= "1"
### Internal Stages
Here we have some internal stages, which cannot be executed alone. The purpose is to
...
...
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