Skip to content

Latest commit

 

History

History
41 lines (36 loc) · 1.1 KB

README.md

File metadata and controls

41 lines (36 loc) · 1.1 KB

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 }}