From 9625fe9e7b181675b467377404badb0ee365d850 Mon Sep 17 00:00:00 2001 From: Daniel Speicher <daniel.speicher@lakedrops.com> Date: Mon, 22 Jul 2024 16:51:22 +0200 Subject: [PATCH] Document stages and jobs. --- docs/gitlab/drupal/index.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/docs/gitlab/drupal/index.md b/docs/gitlab/drupal/index.md index 8272b7e..e04a303 100644 --- a/docs/gitlab/drupal/index.md +++ b/docs/gitlab/drupal/index.md @@ -130,6 +130,32 @@ The entire installation is saved as a build artefact called `build-prod` where a #### Build Prod Site NG +First we have to do some preparation. This is done in the `before_script` section. + +- [.prepareaccess](#prepareaccess) +- [.preparecomposerplugins](#preparecomposerplugins) + +We start a docker image for php with the specifies versions: + +- `PHP_MAJOR_VERSION` +- `PHP_MINOR_VERSION` + +In the script part we install two of our LakeDrops modules: + +- [lakedrops/drupal-environment](../../composer/plugin/drupal-environment) +- [lakedrops/docker4drupal](../../composer/plugin/d4d) + +After that we execute: + +- `composer lakedrops:config` +- `composer lakedrops:docker4drupal` + +The entire installation is saved as a build artefact called `build-prod-ng` where all `git` files are excluded. + +Rules, when the job should run: + +- `$DISABLE_DEPLOYMENT_LOCAL` != "1" + ### Build Here, we define jobs, which build the Drupal website and does some additional checks. This stage is -- GitLab