Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kalwar/d10live-pantheon
A simple drupal 10 site with panethon and ci/cd enabled
https://github.com/kalwar/d10live-pantheon
configuration drupal10 github-actions lando pantheon
Last synced: 4 months ago
JSON representation
A simple drupal 10 site with panethon and ci/cd enabled
- Host: GitHub
- URL: https://github.com/kalwar/d10live-pantheon
- Owner: kalwar
- Created: 2023-09-26T12:22:24.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-02T07:26:16.000Z (5 months ago)
- Last Synced: 2024-10-11T02:21:23.974Z (4 months ago)
- Topics: configuration, drupal10, github-actions, lando, pantheon
- Language: PHP
- Homepage: https://dev-d10live.pantheonsite.io/
- Size: 195 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# d10live-pantheon
[](https://github.com/kalwar/d10live-pantheon/actions/workflows/deploy_to_pantheon.yml)
A very simple skeleton of Drupal 10 together with pantheon site powering your live site, a website about whatever you want it to be.
- [Local setup](#setup)
- [Making site changes](#changes)
- [Deployment to Pantheon via Github actions](#deployment)Do the lando setup, make sure you can clone the repo from pantheon site and run locally drupal 10 with lando
### Configuration changes
Drupal 10 configuration (such as content type and field definitions) is managed through yml files. These files live in the `config` directory.
After you make configuration changes locally (such as adding a field to a content type), you can then export those changes by running `lando drush cex` in the project directory.
Import site database, clear caches, and apply site configuration from code.
1. `lando db-export`
2. You will get database.sql.gz file in root of your project folder
3. Copy database dump generated e.g. `database.sql.gz` dump to pantheon site Database/Files under "Import" section
4. Make sure you have File option selected
5. Your lando drupal local site configurations must match with pantheon site## Deployment to Pantheon via Github Actions
This site's main branch is automatically committed and deployed to Pantheon's dev environment with a [Github action workflow file](.github/workflows/deploy_to_pantheon.yml). The pantheon site name and ID are configured in that file.
It needs these secrets added to this repository's Github settings:
- **PANTHEON_SSH_PRIVATE_KEY**
(A Private SSH key paired to a [Public SSH key added to Pantheon](https://docs.pantheon.io/ssh-keys))
- **TERMINUS_TOKEN**
(A generated [Pantheon Machine token](https://docs.pantheon.io/machine-tokens))# REACT24K
Testing github ci/cd