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
- Host: GitHub
- URL: https://github.com/speareducation/action-pgsql-import-from-s3
- Owner: speareducation
- Created: 2022-07-06T17:57:18.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2025-02-06T21:29:55.000Z (over 1 year ago)
- Last Synced: 2025-02-06T22:28:55.732Z (over 1 year ago)
- Language: Shell
- Size: 10.7 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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" }
]
```