An open API service indexing awesome lists of open source software.

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

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 <