-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #521 from danskernesdigitalebibliotek/release/2023…
…-49-0 Release 2023-49-0
- Loading branch information
Showing
272 changed files
with
9,593 additions
and
5,433 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
on: pull_request | ||
name: CI Tests | ||
env: | ||
PHP_VERSION: 8.0 | ||
PHP_VERSION: 8.1 | ||
COMPOSER_VERSION: v2 | ||
|
||
jobs: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,13 @@ | ||
# dpl-cms | ||
# dpl-cms - The library CMS, powered by Drupal | ||
|
||
This is the main repository used for building the core Drupal CMS which is used | ||
by the danish public libraries. | ||
|
||
## Running a local development | ||
This repo uses styling from the | ||
[dpl-design-system repo](https://github.com/danskernesdigitalebibliotek/dpl-design-system/). | ||
|
||
If you want to develop and maintain the DPL cms project locally you can run: | ||
`dev:reset`. The command builds the site with dependencies and starts the | ||
required Docker containers. | ||
You can find the full documentation, along with setup instructions in either the | ||
[documentation site](https://danskernesdigitalebibliotek.github.io/dpl-docs/dpl-cms/), | ||
or directly in [the docs folder](docs/) | ||
|
||
## Prerequisites | ||
|
||
In order to run local development you need: | ||
|
||
* [`go-task`](https://taskfile.dev) | ||
* Docker | ||
* Preferably support for `VIRTUAL_HOST` environment variables for Docker | ||
containers. Examples: [Dory (OSX)](https://github.com/FreedomBen/dory) or | ||
[`nginx-proxy`](https://github.com/nginx-proxy/nginx-proxy). | ||
|
||
## Other initial steps | ||
|
||
If you are using a mac/OSX it is recommended to use [VirtioFS](https://virtio-fs.gitlab.io) | ||
on the mounted volumes in docker-compose. | ||
|
||
In your Docker for mac preference you need to activate VirtioFS for directory sharing: | ||
|
||
![OSX preference pane providing access to VirtioFS](docs/images/virtiofs.png) | ||
|
||
## Building and publishing releases | ||
|
||
A release of dpl-cms can be build by pushing a tag that matches the following | ||
pattern: | ||
|
||
```shell | ||
# Replace <version> with the version. | ||
git tag <version> | ||
|
||
# Eg. | ||
git tag 1.2.3 | ||
``` | ||
|
||
The actual release is performed by the `Publish source` Github action which | ||
invokes `task source:deploy` which in turn uses the tasks `source:build` and | ||
`source:push` to build and publish the release. | ||
|
||
Using the action should be the preferred choice for building and publishing | ||
releases, but should you need to - it is possible to run the task manually | ||
given you have the necessary permissions for pushing the resulting source-image. | ||
Should you only need to produce the image, but not push it the task you can opt | ||
for just invoking the `source:build` task. | ||
|
||
You can override the name of the built image and/or the destination registry | ||
temporarily by providing a number of environment variables (see the | ||
[Taskfile](Taskfile.yml)). To permanently change these configurations, eg. in | ||
a fork, change the defaults directly in the `Taskfile.yml`. | ||
**tl;dr:** Run `task dev:reset` to get the site up and running locally. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
parameters: | ||
twig.config: | ||
debug: true | ||
services: | ||
cache.backend.null: | ||
class: Drupal\Core\Cache\NullBackendFactory |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php | ||
|
||
# Enable verbose error reporting. | ||
$config['system.logging']['error_level'] = 'verbose'; | ||
|
||
# Disable preprocessing | ||
$config['system.performance']['css']['preprocess'] = FALSE; | ||
$config['system.performance']['js']['preprocess'] = FALSE; | ||
|
||
# Disable caching. | ||
$settings['cache']['default'] = 'cache.backend.null'; |
Oops, something went wrong.