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

https://github.com/speareducation/action-pgsql-import-from-s3


https://github.com/speareducation/action-pgsql-import-from-s3

Last synced: 5 months ago
JSON representation

Awesome Lists containing this project

README

          

# Spear Core Database Setup Action
A GitHub action to pull mysqldump files from S3 and import them.

## Example:
```
jobs:
build:
runs-on: ubuntu-latest
services:
mysql_tdd:
image: mysql:5.7
env:
MYSQL_ALLOW_EMPTY_PASSWORD: yes
SQL_MODE: ""
ports:
- 3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3

- id: setup-databases
name: Setup Databases
uses: speareducation/core-action-database-setup@master
env:
AWS_REGION: us-east-1
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
with:
databases: |
[
{ "db": "spear0_accounts_tdd", "s3Uri": "s3://spear-backups/schemas/spear0_accounts.latest.sql.gz" },
{ "db": "spear0_main_tdd", "s3Uri": "s3://spear-backups/schemas/spear0_main.latest.sql.gz" },
{ "db": "spear0_patient_tdd", "s3Uri": "s3://spear-backups/schemas/spear0_patient.latest.sql.gz" }
]
```