Skip to content

eaudeweb/drupal-sync-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Synchronize two Drupal instances

Caveat: At the moment only the database is synchronized.

Usage

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/[email protected]
        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 }}

About

Synchronize two drupal instances

Resources

License

Stars

Watchers

Forks

Packages

No packages published