-
Notifications
You must be signed in to change notification settings - Fork 20
Added site install recipes. #1428
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Changes from 9 commits
742f94a
94f27f3
ec1e97d
c304f62
eb7cac8
ab903c0
37463b7
05a1edc
8664c4a
0de1159
64ec668
44a6190
7db6489
377ac37
f15cb28
cdce8a0
7cdf859
3450387
a8e0d3a
c23d075
5c9c822
6da15d3
be2d2da
3b38d0d
f5c6f26
9e86511
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -128,6 +128,14 @@ commands: | |
| usage: Provision a site from the database dump or profile. | ||
| cmd: ahoy cli ./scripts/drevops/provision.sh | ||
|
|
||
| provision-cms: | ||
| usage: Provision a site with Drupal CMS profile. | ||
| cmd: ahoy cli "DRUPAL_VERSION=CMS DRUPAL_PROFILE=/app/recipes/drupal_cms_starter ./scripts/drevops/provision.sh" | ||
|
|
||
| provision-11: | ||
| usage: Provision a site with CivicTheme starter for Drupal 11. | ||
| cmd: ahoy cli "DRUPAL_PROFILE=/app/recipes/civictheme_starter DRUPAL_VERSION=11 ./scripts/drevops/provision.sh" | ||
|
Comment on lines
+135
to
+137
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion | 🟠 Major 🧩 Analysis chainLGTM for Drupal 11 starter command The command aligns with the civictheme_starter path and expected envs. Consider a quick sanity check that the recipe directory exists and provision.sh recognizes DRUPAL_VERSION=11. Run: 🏁 Script executed: #!/bin/bash
[ -d recipes/civictheme_starter ] && echo "FOUND: recipes/civictheme_starter" || echo "MISSING: recipes/civictheme_starter"
rg -n --color=never '\bDRUPAL_VERSION\b' scripts/drevops/provision.sh | rg -n --color=never '11|case|if' || trueLength of output: 33 Add Drupal 11 handling to provision.sh The 🤖 Prompt for AI Agents |
||
|
|
||
| export-db: | ||
| usage: Export database dump or database image (if DREVOPS_DB_DOCKER_IMAGE variable is set). | ||
| cmd: ./scripts/drevops/export-db.sh "$@" | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -384,6 +384,13 @@ jobs: | |
| DREVOPS_CI_DRUPAL_THEME_CONFIG_LINT_IGNORE_FAILURE: 1 | ||
| DREVOPS_EXPORT_CODE_DIR: '/tmp/workspace/code_unused' | ||
| <<: *job-build | ||
| # Drupal CMS profile. | ||
| build-drupal-cms: | ||
| <<: *runner_config | ||
| environment: | ||
| DRUPAL_VERSION: CMS | ||
| DRUPAL_PROFILE: /app/recipes/drupal_cms_starter | ||
| <<: *job-build | ||
|
|
||
richardgaunt marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| # GovCMS profile, sub-theme. Longest test run. | ||
| build-govcms-subtheme: | ||
|
|
@@ -625,6 +632,19 @@ workflows: | |
| ignore: /^content\/.*/ | ||
| tags: | ||
| only: /.*/ | ||
| - build-drupal-cms: | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. First go at testing Drupal CMS with CivicTheme |
||
| requires: | ||
| - build-isolated-php-82 | ||
| - build-isolated-php-83 | ||
| - build-isolated-php-83-legacy | ||
| - build-isolated-php-83-next | ||
| # - build-isolated-php-84 | ||
| # - build-isolated-php-84-next | ||
| filters: | ||
| branches: | ||
| ignore: /^content\/.*/ | ||
| tags: | ||
| only: /.*/ | ||
| - build-govcms-subtheme: | ||
| requires: | ||
| - build-isolated-php-82 | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -62,3 +62,10 @@ docker-compose.override.yml | |||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| # Build artifacts for twig linter. | ||||||||||||||||||||||||||
| .twig-cs-fixer.cache | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| # Ignore recipes directory except specific subdirectories | ||||||||||||||||||||||||||
| /recipes/* | ||||||||||||||||||||||||||
| !/recipes/civictheme_content_generated_static/ | ||||||||||||||||||||||||||
| !/recipes/civictheme_drupal_cms_preinstall/ | ||||||||||||||||||||||||||
| !/recipes/civictheme_drupal_cms_starter/ | ||||||||||||||||||||||||||
| !/recipes/civictheme_starter/ | ||||||||||||||||||||||||||
|
Comment on lines
+66
to
+71
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion | 🟠 Major 🧩 Analysis chainPatterns/order look correct; verify behavior on real paths. The anchored ignore and explicit exceptions for recipe subdirs are sound. Recommend verifying with git to ensure only the intended paths are tracked. Run: 🏁 Script executed: #!/bin/bash
# List files under recipes and show which ones are ignored vs tracked.
fd -H . recipes -t f -0 | xargs -0 -I{} bash -lc 'git check-ignore -v "{}" || echo "TRACKED: {}"'Length of output: 51807 Remove tracked recipe files from index and adjust ignore patterns
📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
CMS recipe path likely incorrect; confirm preinstall sequencing to avoid layout bug
Proposed fix (minimum path correction):
If preinstall must run before the CMS starter, either:
Quick checks:
🏁 Script executed:
Length of output: 516
Fix CMS recipe path and invoke preinstall step
.ahoy.yml(lines 131–134), update the profile path:civictheme_drupal_cms_preinstallruns before the CMS starter—either embed it in the starter recipe or add an Ahoy command that runs both in sequence.📝 Committable suggestion
🤖 Prompt for AI Agents