https://github.com/eaudeweb/drupal-sync-action
Synchronize two drupal instances
https://github.com/eaudeweb/drupal-sync-action
Last synced: 4 months ago
JSON representation
Synchronize two drupal instances
- Host: GitHub
- URL: https://github.com/eaudeweb/drupal-sync-action
- Owner: eaudeweb
- License: mit
- Created: 2023-11-14T19:29:06.000Z (over 2 years ago)
- Default Branch: 1.x
- Last Pushed: 2024-08-15T13:18:32.000Z (almost 2 years ago)
- Last Synced: 2024-08-15T15:12:25.586Z (almost 2 years ago)
- Size: 6.84 KB
- Stars: 0
- Watchers: 9
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Synchronize two Drupal instances
Caveat: At the moment only the database is synchronized.
## Usage
```yml
on:
workflow_dispatch:
inputs:
sync_db:
description: 'Synchronize DB'
type: boolean
required: true
default: true
sync_files:
description: 'Synchronize "files"'
type: boolean
required: true
default: false
name: 'Sync PRODUCTION to TEST'
jobs:
db:
name: 'Executing synchronization'
runs-on:
labels: 'drupal'
steps:
- name: 'Running'
uses: eaudeweb/drupal-sync-action@1.x
with:
target_ssh_user: ${{ secrets.TEST_SSH_USER }}
target_ssh_host: ${{ secrets.TEST_SSH_HOST }}
target_ssh_key: ${{ secrets.TEST_SSH_KEY }}
ssh_user_jumphost: ${{ secrets.TEST_SSH_USER_JUMPHOST }}
ssh_host_jumphost: ${{ secrets.TEST_SSH_HOST_JUMPHOST }}
target_project_dir: /var/www/html/example.org
sync_db: ${{ inputs.sync_db }}
sync_files: ${{ inputs.sync_files }}
```