This is the main repository used for building the core Drupal CMS which is used by the danish public libraries.
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.
In order to run local development you need:
go-task- Docker
- Preferably support for
VIRTUAL_HOSTenvironment variables for Docker containers. Examples: Dory (OSX) ornginx-proxy.
If you are using a mac/OSX it is recommended to use nfs on the mounted volumes in docker-compose.
Look at mac-nfs.readme.md in order to set it up.
A release of dpl-cms can be build by pushing a tag that matches the following pattern:
# Replace <version> with the version.
git tag <version>
# Eg.
git tag 1.2.3The 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). To permanently change these configurations, eg. in
a fork, change the defaults directly in the Taskfile.yml.