Skip to content

ChromaticHQ/platformsh-db-dump-s3-sync-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

platformsh-db-dump-s3-sync-action

GitHub Action to take a database dump from a platform.sh site and copy the dump to S3.

Usage

- uses: chromatichq/db-backup-sync-action@v1
  with:
    platformsh_project: 'XXXX-project-id'  # required.
    platformsh_environment: 'main'  # required.
    platformsh_relationship: 'database'  # optional. specify if the project has multiple databases.
    platformsh_app: 'api' # optional. specify if the project has multiple apps.
    aws_s3_bucket: 'bucket-name'  # required.
    db_dump_filename_base: 'sitename-db-dump'
  env:
    PLATFORMSH_CLI_TOKEN: ${{ secrets.PLATFORMSH_CLI_TOKEN }}  # required.
    AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}  # required.
    AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}  # required.
    AWS_DEFAULT_REGION: 'us-west-2' # required.