https://github.com/eaudeweb/drupal-update-action
GitHub action to update a Drupal 8+ instance using Drush commands
https://github.com/eaudeweb/drupal-update-action
Last synced: 4 months ago
JSON representation
GitHub action to update a Drupal 8+ instance using Drush commands
- Host: GitHub
- URL: https://github.com/eaudeweb/drupal-update-action
- Owner: eaudeweb
- License: mit
- Created: 2022-03-27T18:05:35.000Z (about 4 years ago)
- Default Branch: 1.x
- Last Pushed: 2025-04-25T07:52:02.000Z (about 1 year ago)
- Last Synced: 2025-04-25T08:42:25.606Z (about 1 year ago)
- Size: 10.7 KB
- Stars: 0
- Watchers: 7
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Update a remote Drupal 8+ instance
This GitHub action runs remote commands over SSH to update a Drupal 8+ instance. When a deployment is made, a Drupal instance needs to run specific commands:
1. Database updates
2. Config import
3. Cache rebuild
4. Translation updates
5. etc.
## Inputs
- `path` - (Default: `empty`) - Full absolute path on the remote server where the Drupal instance is located
- `server_name` - (Default: `server`) - Is the name of the server given in the SSH configuration (`.ssh/config`)
- `drush` - (Default: `./vendor/bin/drush`) - Name of Drush executable to use for deployments instead of default one from vendor
- `enable_extra_modules` - (Default: empty) - After the deployment is done, some extra modules can be enabled (i.e. `field_ui views_ui devel devel_generate` etc.)
- `enable_maintenance_mode` - (Default: "true") - Enables the maintenance mode.
- `statuscake_api_key` - (Default: empty) – API key used to authenticate with the StatusCake API
- `statuscake_test_id` - (Default: empty) – Comma-separated list of StatusCake test IDs to disable/enable monitoring
Here's an example how to configure a remote SSH server `myserver` given in the example below:
```yml
- name: "Configure SSH"
run: |
mkdir -p ~/.ssh/
echo "$SSH_KEY" > ~/.ssh/server.key
chmod 600 ~/.ssh/server.key
cat >>~/.ssh/config <